X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/48644533f2fba9a9b4d6e72d3f21f3b5cbcfe438..e7cfa5e63a27e6fbb75e0bbd151af2c7d0d222e9:/print-isakmp.c diff --git a/print-isakmp.c b/print-isakmp.c index 8ad8a60f..18102ebc 100644 --- a/print-isakmp.c +++ b/print-isakmp.c @@ -2697,6 +2697,13 @@ ikev2_e_print(netdissect_options *ndo, /* got it decrypted, print stuff inside. */ ikev2_sub_print(ndo, base, np, ext, ndo->ndo_snapend, phase, doi, proto, depth+1); + + /* + * esp_print_decrypt_buffer_by_ikev2 pushed information + * on the buffer stack; we're done with the buffer, so + * pop it (which frees the buffer) + */ + nd_pop_packet_info(ndo); } #endif