CLEANUP: fix typos in comments for contrib/wireshark-dissectors

This fixes a typo in the README of the peers section of this subsystem
and 2 typos in code comments. Groupped together as cleanup to avoid too
many 1 char patches.
This commit is contained in:
Joseph Herlant 2018-11-09 19:00:24 -08:00 committed by Willy Tarreau
parent ebe14bbbef
commit bd0f83f80b
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ on Windows systems (could not be tested).
1) File list 1) File list
------------- -------------
- packet-happp.c: source code for HAProxy Peers Procotol (HAPPP) dissection - packet-happp.c: source code for HAProxy Peers Protocol (HAPPP) dissection
support. support.
- wireshark.happp.dissector.patch: a patch file for wireshark sources to enable HAPPP - wireshark.happp.dissector.patch: a patch file for wireshark sources to enable HAPPP
dissection support. Note that this patch file modifies only two files: dissection support. Note that this patch file modifies only two files:

View File

@ -792,7 +792,7 @@ static void dissect_happp_stkt_define_msg(tvbuff_t *tvb, packet_info *pinfo _U_,
return; return;
/* /*
* According to the documentation, it is not our responsability * According to the documentation, it is not our responsibility
* to free this allocated memory. * to free this allocated memory.
*/ */
happp_cv_data = (struct happp_cv_data_t *)wmem_alloc(wmem_file_scope(), happp_cv_data = (struct happp_cv_data_t *)wmem_alloc(wmem_file_scope(),
@ -1599,7 +1599,7 @@ dissect_happp_heur_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
if (tvb_captured_length(tvb) < proto_strlen + 1) if (tvb_captured_length(tvb) < proto_strlen + 1)
return FALSE; return FALSE;
/* Check that we received a line begining with HAPPP_PROTOCOL /* Check that we received a line beginning with HAPPP_PROTOCOL
* followed by a space character. * followed by a space character.
*/ */
if (tvb_strneql(tvb, 0, HAPPP_PROTOCOL, proto_strlen) || if (tvb_strneql(tvb, 0, HAPPP_PROTOCOL, proto_strlen) ||