aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-07-02 09:33:47 +0200
committerDario Lombardo <lomato@gmail.com>2019-07-03 07:49:16 +0000
commit6e17af19ee1a3811bd0dcfcbd7f5f563e22078fa (patch)
tree7ac37b85923ad920b97d344a4bf55c7ca590e4ff /epan/dissectors/packet-http.c
parentddfb6e39017ff3af457202938a282078a35dbc54 (diff)
http: remove unneeded allocation.
Change-Id: I684f5e35647c6ea90fc1e8f1f2a0d02446ba3297 Reviewed-on: https://code.wireshark.org/review/33819 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 390c3c353b..eb2e3b52d1 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -3169,7 +3169,7 @@ process_header(tvbuff_t *tvb, int offset, int next_offset,
auth = wmem_new0(wmem_file_scope(), tap_credential_t);
auth->num = pinfo->num;
auth->password_hf_id = *headers[hf_index].hf;
- auth->proto = wmem_strdup(wmem_file_scope(), "HTTP header auth");
+ auth->proto = "HTTP header auth";
auth->username = wmem_strdup(wmem_file_scope(), TAP_CREDENTIALS_PLACEHOLDER);
tap_queue_packet(credentials_tap, pinfo, auth);
break;