X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e8a77162825188bd31eb96c99dc8e4432a2c6531..1bf91b1413a6d0eefb4c49bafdb612befa838556:/print-ip.c diff --git a/print-ip.c b/print-ip.c index 38cc2315..bb1554f9 100644 --- a/print-ip.c +++ b/print-ip.c @@ -358,14 +358,14 @@ again: case IPPROTO_IPCOMP: { - int enh; - ipds->advance = ipcomp_print(ndo, ipds->cp, &enh); - if (ipds->advance <= 0) - break; - ipds->cp += ipds->advance; - ipds->len -= ipds->advance; - ipds->nh = enh & 0xff; - goto again; + ipcomp_print(ndo, ipds->cp); + /* + * Either this has decompressed the payload and + * printed it, in which case there's nothing more + * to do, or it hasn't, in which case there's + * nothing more to do. + */ + break; } case IPPROTO_SCTP: