]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-loopback.c
Use ND_TCHECK() to do bounds checking.
[tcpdump] / print-loopback.c
index c0297b8d6cc6da7a41dfe0602f2d55d03caccaf5..9a74ae611397c537fe32ab5c4968e51ce51747a5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This module implements decoding of the the Loopback Protocol, originally
+ * This module implements decoding of the Loopback Protocol, originally
  * defined as the Configuration Testing Protocol. It is based on the following
  * specification:
  * http://www.mit.edu/people/jhawk/ctp.pdf
@@ -85,7 +85,7 @@ loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int le
                                goto corrupt;
                        /* forwarding address */
                        ND_TCHECK2(*cp, ETHER_ADDR_LEN);
-                       ND_PRINT((ndo, ", forwarding address %s", etheraddr_string(cp)));
+                       ND_PRINT((ndo, ", forwarding address %s", etheraddr_string(ndo, cp)));
                        cp += ETHER_ADDR_LEN;
                        /* data */
                        ND_PRINT((ndo, ", data (%u octets)", len - 8));