aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-06-11 07:09:11 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-06-11 07:09:11 +0000
commit34cb6f96d3bb52c0345d72b37c34ffd0da07a10e (patch)
treeb49481d9c02c620b4e0aa4a9b93fd2840e6e260e /epan/dissectors/packet-http.c
parent5cbccb3eadb2d6f86fea697c2d7eda389ab21cf7 (diff)
From Michael Mann:
NUL terminate the decoded string. Updated only dissector that uses epan_base64_decode() (packet-http.c) to assume NULL termination. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7349 svn path=/trunk/; revision=43196
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index a627d6dcbf..10e5da4690 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -2432,7 +2432,6 @@ check_auth_basic(proto_item *hdr_item, tvbuff_t *tvb, gchar *value)
value += hdrlen;
len = epan_base64_decode(value);
- value[len] = '\0';
proto_tree_add_string(hdr_tree, hf_http_basic, tvb,
0, 0, value);