]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ppp.c
from Darren Reed <[email protected]>:
[tcpdump] / print-ppp.c
index cfa92e5e720bb334c40e9f4306d00cc6ba2fe476..020cb31b930e0369692b3bf2c00bbb77168c08be 100644 (file)
@@ -31,7 +31,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.98 2004-07-06 22:11:17 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.99 2004-07-13 15:54:05 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -448,6 +448,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;