]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-smtp.c
Revert partially the commit 21b1273
[tcpdump] / print-smtp.c
index 1b6ecbb554c29ce5eee8141f95f1e7846a605b98..d14d8f35f549a49fb623d64febbfe9477e004949 100644 (file)
@@ -14,7 +14,7 @@
 /* \summary: Simple Mail Transfer Protocol (SMTP) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
@@ -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);
 }