Correct error handling during MAC transmission check for if_gif.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Robert Watson 2002-08-12 16:08:23 +00:00
parent eabc182e02
commit e0852ce2de

View File

@ -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
/*