mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Make sure the default value of a dummy variable is 0
so that it doesn't do anything.
This commit is contained in:
parent
da66dd135a
commit
b876049334
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36710
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip_input.c 8.2 (Berkeley) 1/4/94
|
||||
* $Id: ip_input.c,v 1.87 1998/06/06 19:39:09 julian Exp $
|
||||
* $Id: ip_input.c,v 1.88 1998/06/06 20:45:27 julian Exp $
|
||||
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
|
||||
*/
|
||||
|
||||
@ -368,7 +368,7 @@ ip_input(struct mbuf *m)
|
||||
goto ours;
|
||||
}
|
||||
#else
|
||||
u_int16_t dummy;
|
||||
u_int16_t dummy = 0;
|
||||
/* If ipfw says divert, we have to just drop packet */
|
||||
if ((*ip_fw_chk_ptr)(&ip, hlen, NULL, &dummy, &m)) {
|
||||
m_freem(m);
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip_output.c 8.3 (Berkeley) 1/21/94
|
||||
* $Id: ip_output.c,v 1.69 1998/06/06 19:39:09 julian Exp $
|
||||
* $Id: ip_output.c,v 1.70 1998/06/06 20:45:28 julian Exp $
|
||||
*/
|
||||
|
||||
#define _IP_VHL
|
||||
@ -378,7 +378,7 @@ ip_output(m0, opt, ro, flags, imo)
|
||||
goto done;
|
||||
}
|
||||
#else
|
||||
u_int16_t dummy;
|
||||
u_int16_t dummy = 0;
|
||||
/* If ipfw says divert, we have to just drop packet */
|
||||
if ((*ip_fw_chk_ptr)(&ip, hlen, ifp, &dummy, &m)) {
|
||||
m_freem(m);
|
||||
|
Loading…
Reference in New Issue
Block a user