Fix NULL pointer dereference bug when parsing IPV6CP traffic.
This file is already off the vendor branch, and the fix will be in future tcpdump.org vendor branch imports. PR: bin/76497 MFC after: 1 week Obtained from: tcpdump.org rev 1.89.2.4 Discussed with: fenner, keramida
This commit is contained in:
parent
f6dc414a5c
commit
a0fba9baed
@ -33,7 +33,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] _U_ =
|
||||
"@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.89.2.3 2004/03/24 03:32:43 guy Exp $ (LBL)";
|
||||
"@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.89.2.4 2004/07/13 16:00:25 hannes Exp $ (LBL)";
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@ -444,6 +444,10 @@ handle_ctrl_proto(u_int proto, const u_char *pptr, int length)
|
||||
pfunc = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (pfunc == NULL) /* catch the above null pointer if unknown CP */
|
||||
break;
|
||||
|
||||
if ((j = (*pfunc)(tptr, len)) == 0)
|
||||
break;
|
||||
x -= j;
|
||||
|
Loading…
x
Reference in New Issue
Block a user