diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-03-07 22:20:34 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-03-08 10:12:21 +0100 |
commit | 9be45b2369666607980451d0c85b6fc62d529189 (patch) | |
tree | 17b2e669a9d6922ea1fb58eabeefc39d179328fe /print-http.c | |
parent | e85072ad1d966b1fa4c9a791debf9c5f02e416a9 (diff) | |
download | tcpdump-9be45b2369666607980451d0c85b6fc62d529189.tar.gz |
Use the ndo->ndo_protocol field instead of the protoname parameter
Moreover:
Fix a truncated string: "[!" is not the prefix for a truncated string.
Add two comments.
Clean up a whitespace.
Diffstat (limited to 'print-http.c')
-rw-r--r-- | print-http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-http.c b/print-http.c index c8b6be12..866f3827 100644 --- a/print-http.c +++ b/print-http.c @@ -74,5 +74,5 @@ void http_print(netdissect_options *ndo, const u_char *pptr, u_int len) { ndo->ndo_protocol = "http"; - txtproto_print(ndo, pptr, len, "http", httpcmds, RESP_CODE_SECOND_TOKEN); + txtproto_print(ndo, pptr, len, httpcmds, RESP_CODE_SECOND_TOKEN); } |