]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-dtp.c
More bounds checking when fetching addresses and converting to strings.
[tcpdump] / print-dtp.c
index 1ea36fce52f3de14c5bd618c5c40c6f01fd2d484..4c3d6c780eac1d1fa9a2e5de730ff1825425b2c3 100644 (file)
@@ -102,7 +102,7 @@ dtp_print(netdissect_options *ndo, const u_char *pptr, u_int length)
        case DTP_NEIGHBOR_TLV:
                 if (len < 10)
                     goto invalid;
-                ND_PRINT(", %s", etheraddr_string(ndo, tptr+4));
+                ND_PRINT(", %s", GET_ETHERADDR_STRING(tptr+4));
                 break;
 
         default: