]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print.c
ppp: use the buffer stack for the de-escaping buffer.
[tcpdump] / print.c
diff --git a/print.c b/print.c
index b9ba5997d789c48ce1ba243864d33b5ed1bb158a..f20633388b3d0cb0d1a975c60c35e08f7dadb13b 100644 (file)
--- a/print.c
+++ b/print.c
@@ -431,10 +431,14 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h,
        nd_pop_all_packet_info(ndo);
 
        /*
-        * Restore the original snapend, as a printer might have
-        * changed it.
+        * Restore the originals snapend and packetp, as a printer
+        * might have changed them.
+        *
+        * XXX - nd_pop_all_packet_info() should have restored the
+        * original values, but, just in case....
         */
        ndo->ndo_snapend = sp + h->caplen;
+       ndo->ndo_packetp = sp;
        if (ndo->ndo_Xflag) {
                /*
                 * Print the raw packet data in hex and ASCII.