diff options
author | Guy Harris <gharris@sonic.net> | 2022-03-14 12:11:24 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-03-14 19:12:20 +0000 |
commit | 109b92b5d796f2fb64491fe1976257bc976f1f40 (patch) | |
tree | fa9fe0a1d1e9dc33aa6cb25774bf19ae3a53d60b /extcap | |
parent | 304dae33d68d923cd2da6d405d999f8a8527ba71 (diff) |
wiretap: have wtap_dump_close() provide a "needs to be reloaded" indication.
This allows the "needs to be reloaded" indication to be set in the close
process, as is the case for ERF; having a routine that returns the value
of that indication is not useful if it gets seet in the close process,
as the handle for the wtap_dumper is no longer valid after
wtap_dump_close() finishes.
We also get rid of wtap_dump_get_needs_reload(), as callers should get
that information via the added argument to wtap_dump_close().
Fixes #17989.
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/etl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap/etl.c b/extcap/etl.c index 0186a13535..9baaf217cb 100644 --- a/extcap/etl.c +++ b/extcap/etl.c @@ -383,7 +383,7 @@ wtap_open_return_val etw_dump(const char* etl_filename, const char* pcapng_filen { if (*err == ERROR_SUCCESS) { - if (!wtap_dump_close(g_pdh, err, err_info)) + if (!wtap_dump_close(g_pdh, NULL, err, err_info)) { returnVal = WTAP_OPEN_ERROR; } @@ -392,7 +392,7 @@ wtap_open_return_val etw_dump(const char* etl_filename, const char* pcapng_filen { int err_ignore; gchar* err_info_ignore = NULL; - if (!wtap_dump_close(g_pdh, &err_ignore, &err_info_ignore)) + if (!wtap_dump_close(g_pdh, NULL, &err_ignore, &err_info_ignore)) { returnVal = WTAP_OPEN_ERROR; g_free(err_info_ignore); |