diff options
author | João Valverde <j@v6e.pt> | 2021-06-24 21:20:25 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2021-06-26 00:18:26 +0100 |
commit | c6a920686ce59ea8b29f7a61f8197077baedf304 (patch) | |
tree | da6268c7e6fce9e38f99190f08fe3c08b5301b38 /extcap/sshdump.c | |
parent | c2c256f0d8afa76599d7c3f3dcfac23c02069209 (diff) |
wslog: Check environment initialization for errors
Initialiaze the cmdarg error stream earlier.
Dumpcap also needs to know earlier if it is running in capture
child mode.
Diffstat (limited to 'extcap/sshdump.c')
-rw-r--r-- | extcap/sshdump.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c index 80bab13f79..afb7693193 100644 --- a/extcap/sshdump.c +++ b/extcap/sshdump.c @@ -365,6 +365,9 @@ int main(int argc, char *argv[]) /* Initialize log handler early so we can have proper logging during startup. */ ws_log_init("sshdump", NULL); + /* Early logging command-line initialization. */ + ws_log_parse_args(&argc, argv, NULL, LOG_ARGS_NOEXIT); + sshdump_extcap_interface = g_path_get_basename(argv[0]); /* |