]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Gisle Vanem: if NPFUNC(np) is known not to be null, we can safely
authorguy <guy>
Thu, 4 Nov 2004 07:49:14 +0000 (07:49 +0000)
committerguy <guy>
Thu, 4 Nov 2004 07:49:14 +0000 (07:49 +0000)
use npfunc[np[ (and if it's not known to be null, we can't safely use
NPFUNC(np)), so do so.

print-isakmp.c

index e6f8f82d4db5667fe556aa9eab0ac324ae9314dd..6368cf5626b0ef135e8b2432e42b5c2529161af8 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.48 2004-03-25 03:31:05 mcr Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.49 2004-11-04 07:49:14 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1201,7 +1201,7 @@ isakmp_sub0_print(u_char np, const struct isakmp_gen *ext, const u_char *ep,
                 * XXX - what if item_len is too short, or too long,
                 * for this payload type?
                 */
-               cp = (*NPFUNC(np))(ext, item_len, ep, phase, doi, proto, depth);
+               cp = (*npfunc[np])(ext, item_len, ep, phase, doi, proto, depth);
        } else {
                printf("%s", NPSTR(np));
                cp += item_len;