aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-06 15:29:18 +0000
committerEvan Huus <eapache@gmail.com>2013-09-06 15:29:18 +0000
commit0e885e808944e9cc6110689efb763acef9b0c875 (patch)
treecea179f63dfc45cd8d57ca0a61311d75f21b2ba2
parentdf6f3412ddfd3ccba6e90246f5006ceb10569e22 (diff)
Set length and contents to 0/NULL if the blob is empty. Fixes
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9107 svn path=/trunk/; revision=51798
-rw-r--r--epan/dissectors/packet-ntlmssp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ntlmssp.c b/epan/dissectors/packet-ntlmssp.c
index 871156bef3..82171c3686 100644
--- a/epan/dissectors/packet-ntlmssp.c
+++ b/epan/dissectors/packet-ntlmssp.c
@@ -948,6 +948,8 @@ dissect_ntlmssp_blob (tvbuff_t *tvb, packet_info *pinfo,
if (ntlmssp_tree)
proto_tree_add_text(ntlmssp_tree, tvb, offset, 8, "%s: Empty",
proto_registrar_get_name(blob_hf));
+ result->length = 0;
+ result->contents = NULL;
return offset+8;
}