]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eap.c
ICMP: Fix a typo in a comment.
[tcpdump] / print-eap.c
index 2ef9de5e0995a8016aad0370e335b92369210743..b0542ad94b59ac8c2ebc5665f268c141877ea464 100644 (file)
@@ -178,14 +178,14 @@ eap_print(netdissect_options *ndo,
             case EAP_TYPE_IDENTITY:
                 if (len - 5 > 0) {
                     ND_PRINT(", Identity: ");
-                    (void)nd_printzp(ndo, cp + 5, len - 5, NULL);
+                    nd_printjnp(ndo, cp + 5, len - 5);
                 }
                 break;
 
             case EAP_TYPE_NOTIFICATION:
                 if (len - 5 > 0) {
                     ND_PRINT(", Notification: ");
-                    (void)nd_printzp(ndo, cp + 5, len - 5, NULL);
+                    nd_printjnp(ndo, cp + 5, len - 5);
                 }
                 break;
 
@@ -207,7 +207,6 @@ eap_print(netdissect_options *ndo,
 
             case EAP_TYPE_TTLS:
             case EAP_TYPE_TLS:
-                ND_TCHECK_1(cp + 5);
                 if (subtype == EAP_TYPE_TTLS)
                     ND_PRINT(" TTLSv%u",
                            EAP_TTLS_VERSION(GET_U_1((cp + 5))));
@@ -255,7 +254,6 @@ eap_print(netdissect_options *ndo,
     return;
 trunc:
     nd_print_trunc(ndo);
-    return;
 }
 
 void