]> 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 08578132f4a9121ccd8e2eaae12bac80d6c5cff5..dcaa37f4521c5380f40367891a1f4f0a5872a33b 100644 (file)
--- a/print.c
+++ b/print.c
@@ -443,10 +443,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.