diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-11-17 22:49:24 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-11-18 11:43:05 +0000 |
commit | e97d235efcd718f17220d6a21c9037581a9df9ae (patch) | |
tree | 9aa7a1f40f49f006745c77044dc5d23d84935b94 /epan/dissectors/packet-spdy.c | |
parent | 4b96030d34aeb1cbeb5c36aeb952d41d5b6b8660 (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>
Diffstat (limited to 'epan/dissectors/packet-spdy.c')
-rw-r--r-- | epan/dissectors/packet-spdy.c | 2 |
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"); |