Skip to content

Commit c3a05ee

Browse files
fxlbguyharris
authored andcommitted
ISAKMP: Avoid reinventing nd_printjn()
1 parent 312f3de commit c3a05ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

print-isakmp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,10 +1437,8 @@ ikev1_id_print(netdissect_options *ndo, u_char tpay _U_,
14371437
case IPSECDOI_ID_FQDN:
14381438
case IPSECDOI_ID_USER_FQDN:
14391439
{
1440-
u_int i;
14411440
ND_PRINT(" len=%u ", len);
1442-
for (i = 0; i < len; i++)
1443-
fn_print_char(ndo, GET_U_1(data + i));
1441+
nd_printjn(ndo, data, len);
14441442
len = 0;
14451443
break;
14461444
}

0 commit comments

Comments
 (0)