X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/57ff158eb0b55157bb925104571f09b4da8cdf5e..dcae3b01d76f9a040f2a6e3d2c861c25c2d60a73:/print-vtp.c diff --git a/print-vtp.c b/print-vtp.c index e0c7ded2..bcee64cf 100644 --- a/print-vtp.c +++ b/print-vtp.c @@ -151,7 +151,7 @@ vtp_print(netdissect_options *ndo, ND_PRINT(" [invalid MgmtD Len %u]", mgmtd_len); goto invalid; } - nd_printzp(ndo, tptr + 4, mgmtd_len, NULL); + nd_printjnp(ndo, tptr + 4, mgmtd_len); ND_PRINT(", %s: %u", tok2str(vtp_header_values, "Unknown", type), GET_U_1(tptr + 2)); @@ -261,7 +261,7 @@ vtp_print(netdissect_options *ndo, name_len = GET_U_1(vtp_vlan->name_len); if (len < 4*((name_len + 3)/4)) goto invalid; - nd_printzp(ndo, tptr, name_len, NULL); + nd_printjnp(ndo, tptr, name_len); /* * Vlan names are aligned to 32-bit boundaries.