diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-24 18:04:13 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-25 01:46:13 +0000 |
commit | 6126a6455058696dd0ac2073032bdfe066a6ae38 (patch) | |
tree | c5918b31de97e93e089d33c9689621cf43ff7839 /epan/proto.c | |
parent | 585f944f655d5220e5a285ee7c1cfe86b2a6f8a9 (diff) |
Fix proto_tree_add_bytes_item() when we fail to decode number from string
We still need to insert an empty g_byte_array
Bug: 11309
Change-Id: Idf2ed8ea81b3f612ef8d6ae1aed158108dcc4356
Reviewed-on: https://code.wireshark.org/review/9114
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/proto.c b/epan/proto.c index edf6796278..7f71a482a2 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -2383,6 +2383,8 @@ proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, if (bytes) proto_tree_set_bytes_gbytearray(new_fi, bytes); + else + proto_tree_set_bytes(new_fi, NULL, 0); if (created_bytes) g_byte_array_free(created_bytes, TRUE); |