]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip6.c
More bounds checking when fetching addresses and converting to strings.
[tcpdump] / print-ip6.c
index a1802b1e1f15e8c04d71ea600b346a15d36f4e35..fd28cb23944588b9bdacd0d933f575d080076776 100644 (file)
@@ -333,8 +333,8 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length)
                if (cp == (const u_char *)(ip6 + 1) &&
                    nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
                    nh != IPPROTO_DCCP && nh != IPPROTO_SCTP) {
-                       ND_PRINT("%s > %s: ", ip6addr_string(ndo, ip6->ip6_src),
-                                    ip6addr_string(ndo, ip6->ip6_dst));
+                       ND_PRINT("%s > %s: ", GET_IP6ADDR_STRING(ip6->ip6_src),
+                                    GET_IP6ADDR_STRING(ip6->ip6_dst));
                }
 
                switch (nh) {