]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix the variable for the packet length.
authorGuy Harris <[email protected]>
Mon, 24 Sep 2018 01:02:37 +0000 (18:02 -0700)
committerGuy Harris <[email protected]>
Mon, 24 Sep 2018 01:02:37 +0000 (18:02 -0700)
The length passed in is a u_int, so we should assign it to a u_int, not
a u_short.

print-isoclns.c

index 5a0b428883a5ee6f6a2ed9aa9c0e287d9e35787c..eef8d6e39ad43a22e9416e87f921473e24978fd3 100644 (file)
@@ -2279,7 +2279,8 @@ isis_print(netdissect_options *ndo,
     uint8_t ext_is_len, ext_ip_len, mt_len;
     uint8_t isis_subtlv_idrp;
     const uint8_t *optr, *pptr, *tptr;
-    u_short packet_len,pdu_len, key_id;
+    u_int packet_len;
+    u_short pdu_len, key_id;
     u_int i,vendor_id;
     int sigcheck;