aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-11-17 22:49:24 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-11-18 11:43:05 +0000
commite97d235efcd718f17220d6a21c9037581a9df9ae (patch)
tree9aa7a1f40f49f006745c77044dc5d23d84935b94
parent4b96030d34aeb1cbeb5c36aeb952d41d5b6b8660 (diff)
SPDY: do not try to access an uninitialized tvb
Coming when data length = 0 Bug: 10704 Change-Id: Ibd0730be661d966aa0429480dba97ed7d3e5c471 Reviewed-on: https://code.wireshark.org/review/5377 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-spdy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-spdy.c b/epan/dissectors/packet-spdy.c
index cc0572f13d..f773331ed0 100644
--- a/epan/dissectors/packet-spdy.c
+++ b/epan/dissectors/packet-spdy.c
@@ -799,6 +799,8 @@ static int dissect_spdy_data_payload(tvbuff_t *tvb,
}
if (data_tvb == NULL) {
+ if (next_tvb == NULL)
+ goto body_dissected;
data_tvb = next_tvb;
} else {
add_new_data_source(pinfo, data_tvb, "Assembled entity body");