[packet snort] Fix build on SuSE 11.4
packet-snort.c: In function snort_dissector: packet-snort.c:882: error: converted_content_length may be used uninitialized in this function packet-snort.c:882: note: converted_content_length was declared here packet-snort.c:880: error: content_offset may be used uninitialized in this function packet-snort.c:880: note: content_offset was declared here Change-Id: I8fb990492f31fc4ce942244005f547f3b3c9bba3 Reviewed-on: https://code.wireshark.org/review/20335 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
4fdc16d8e4
commit
bf28bd4da3
|
@ -877,9 +877,9 @@ static void snort_show_alert(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo
|
|||
for (n=0; n < rule->number_contents; n++) {
|
||||
|
||||
/* Search for string among tvb contents so we can highlight likely bytes. */
|
||||
unsigned int content_offset;
|
||||
unsigned int content_offset = 0;
|
||||
gboolean match_found = FALSE;
|
||||
unsigned int converted_content_length;
|
||||
unsigned int converted_content_length = 0;
|
||||
int content_hf_item;
|
||||
char *content_text_template;
|
||||
gboolean attempt_match;
|
||||
|
|
Loading…
Reference in New Issue