summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-12 16:08:23 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-12 16:08:23 +0000
commit4ae01618d14551be67e1488c4bc266369d6dc77a (patch)
treeabd4c88ae871081de467c7d6e26ab89122f1e9a0 /sys
parentc89541e0dce12efcc4d7eddb0b87e44ab32c1188 (diff)
downloadFreeBSD-src-4ae01618d14551be67e1488c4bc266369d6dc77a.zip
FreeBSD-src-4ae01618d14551be67e1488c4bc266369d6dc77a.tar.gz
Correct error handling during MAC transmission check for if_gif.
Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_gif.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 287e451..dc3ad0e 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -32,6 +32,7 @@
#include "opt_inet.h"
#include "opt_inet6.h"
+#include "opt_mac.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -343,8 +344,10 @@ gif_output(ifp, m, dst, rt)
#ifdef MAC
error = mac_check_ifnet_transmit(ifp, m);
- if (error)
- senderr(error);
+ if (error) {
+ m_freem(m);
+ goto end;
+ }
#endif
/*
OpenPOWER on IntegriCloud