]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-http.c
remove redundant ND_TCHECK, let GET_ routines handle checks
[tcpdump] / print-http.c
index 3bed0e44e84a4d3536d6e93082cf3fea06c9a49a..866f3827feb0e3f3ae65fe81750767a3d2d7e6f1 100644 (file)
@@ -14,7 +14,7 @@
 /* \summary: Hypertext Transfer Protocol (HTTP) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
@@ -73,5 +73,6 @@ static const char *httpcmds[] = {
 void
 http_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
-       txtproto_print(ndo, pptr, len, "http", httpcmds, RESP_CODE_SECOND_TOKEN);
+       ndo->ndo_protocol = "http";
+       txtproto_print(ndo, pptr, len, httpcmds, RESP_CODE_SECOND_TOKEN);
 }