Skip to content

Commit 6e17af1

Browse files
committed
http: remove unneeded allocation.
Change-Id: I684f5e35647c6ea90fc1e8f1f2a0d02446ba3297 Reviewed-on: https://code.wireshark.org/review/33819 Petri-Dish: Dario Lombardo <[email protected]> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <[email protected]>
1 parent ddfb6e3 commit 6e17af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

epan/dissectors/packet-http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ process_header(tvbuff_t *tvb, int offset, int next_offset,
31693169
auth = wmem_new0(wmem_file_scope(), tap_credential_t);
31703170
auth->num = pinfo->num;
31713171
auth->password_hf_id = *headers[hf_index].hf;
3172-
auth->proto = wmem_strdup(wmem_file_scope(), "HTTP header auth");
3172+
auth->proto = "HTTP header auth";
31733173
auth->username = wmem_strdup(wmem_file_scope(), TAP_CREDENTIALS_PLACEHOLDER);
31743174
tap_queue_packet(credentials_tap, pinfo, auth);
31753175
break;

0 commit comments

Comments
 (0)