]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ISAKMP: Avoid reinventing nd_printjn()
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 9 Feb 2025 17:55:24 +0000 (18:55 +0100)
committerGuy Harris <[email protected]>
Sun, 9 Feb 2025 22:00:00 +0000 (14:00 -0800)
print-isakmp.c

index 86e59314e6ae15b6c3731d557a70586acece95bc..dd19145628e937caded4dce390a67c0a4c95c223 100644 (file)
@@ -1437,10 +1437,8 @@ ikev1_id_print(netdissect_options *ndo, u_char tpay _U_,
                case IPSECDOI_ID_FQDN:
                case IPSECDOI_ID_USER_FQDN:
                    {
-                       u_int i;
                        ND_PRINT(" len=%u ", len);
-                       for (i = 0; i < len; i++)
-                               fn_print_char(ndo, GET_U_1(data + i));
+                       nd_printjn(ndo, data, len);
                        len = 0;
                        break;
                    }