]> The Tcpdump Group git mirrors - tcpdump/commitdiff
correct NI6 subject name printing (DNS).
authoritojun <itojun>
Mon, 15 May 2000 09:23:49 +0000 (09:23 +0000)
committeritojun <itojun>
Mon, 15 May 2000 09:23:49 +0000 (09:23 +0000)
print-icmp6.c

index 40bdcfe6d85382108f4f40ad537040b3667717d2..88fec876aa3fc14ca2b26333d7e3a8e1b7522844 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.12 2000-05-15 06:27:02 itojun Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.13 2000-05-15 09:23:49 itojun Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -669,7 +669,7 @@ icmp6_nodeinfo_print(int icmp6len, const u_char *bp, const u_char *ep)
                        break;
                case ICMP6_NI_SUBJ_FQDN:
                        printf(", subject=DNS name");
-                       cp = (const u_char *)(ni6 + 1) + 4;
+                       cp = (const u_char *)(ni6 + 1);
                        if (cp[0] == ep - cp - 1) {
                                /* icmp-name-lookup-03, pascal string */
                                if (vflag)