summaryrefslogtreecommitdiff
path: root/extcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/extcap.c b/extcap.c
index 7747d72a85..28312a01a1 100644
--- a/extcap.c
+++ b/extcap.c
@@ -765,21 +765,18 @@ void extcap_if_cleanup(capture_options * capture_opts, gchar ** errormsg) {
}
g_free(buffer);
}
- }
#ifndef _WIN32
- /* Final child watch may not have been called */
- if ( interface_opts.extcap_child_watch != 0 )
- {
- extcap_child_watch_cb(userdata->pid, 0, capture_opts);
- /* it will have changed in extcap_child_watch_cb */
- interface_opts = g_array_index(capture_opts->ifaces, interface_options,
- icnt);
- }
+ /* Final child watch may not have been called */
+ if ( interface_opts.extcap_child_watch != 0 )
+ {
+ extcap_child_watch_cb(userdata->pid, 0, capture_opts);
+ /* it will have changed in extcap_child_watch_cb */
+ interface_opts = g_array_index(capture_opts->ifaces, interface_options,
+ icnt);
+ }
#endif
- if ( userdata )
- {
if ( userdata->extcap_stderr != NULL )
overwrite_exitcode = TRUE;