http: Initialize a variable

Initialize len if it's going to be used in the return.
In certain cases we don't enter the loop and call
dissectr_http_message at all.

Fixup 76879a480a

Fix #19739
This commit is contained in:
John Thacker 2024-04-05 06:17:51 -04:00 committed by AndersBroman
parent cc4f989805
commit 07f68d0d15
1 changed files with 1 additions and 1 deletions

View File

@ -3943,7 +3943,7 @@ dissect_http_on_stream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
http_conv_t *conv_data, gboolean end_of_stream, const guint32 *seq)
{
int offset = 0;
int len;
int len = 0;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
/* Switch protocol if the data starts after response headers. */