diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2021-09-08 16:55:54 +0200 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-09-08 20:07:01 +0000 |
commit | 4e7d10eea14a015f5c034a3e4fa38f1e8718d1a0 (patch) | |
tree | 4c8e54ef0297e8cd4ea183dfd304625fc4b3cc32 | |
parent | 48cf9d5497361169d5afedf4c699b9aae3f99189 (diff) |
Credentials Tap: Fix wmem scope for init call
When calling credentials_init() for a tshark live capture we're in the
epan wmem scope.
Fixes: wireshark/wireshark#17576
-rw-r--r-- | ui/cli/tap-credentials.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/cli/tap-credentials.c b/ui/cli/tap-credentials.c index 5cb9b73c2f..c2f6fc04ec 100644 --- a/ui/cli/tap-credentials.c +++ b/ui/cli/tap-credentials.c @@ -85,7 +85,7 @@ static void credentials_init(const char *opt_arg _U_, void *userdata _U_) exit(1); } - credentials = wmem_array_new(wmem_file_scope(), sizeof(tap_credential_t)); + credentials = wmem_array_new(wmem_epan_scope(), sizeof(tap_credential_t)); } static stat_tap_ui credentials_ui = { |