X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/49b23c5a9b0198bb382dcf43c458d46fcf2fa809..1bcd37991fa57d9e966a6f96e7cbff59b16c28bd:/print-smtp.c diff --git a/print-smtp.c b/print-smtp.c index 0cdcf1d9..d14d8f35 100644 --- a/print-smtp.c +++ b/print-smtp.c @@ -14,10 +14,10 @@ /* \summary: Simple Mail Transfer Protocol (SMTP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include #include @@ -28,5 +28,6 @@ void smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len) { - txtproto_print(ndo, pptr, len, "smtp", NULL, 0); + ndo->ndo_protocol = "smtp"; + txtproto_print(ndo, pptr, len, NULL, 0); }