diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-04-28 12:39:56 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-04-29 00:38:40 +0000 |
commit | 455c30a54b3e682c1d9a066105164066e7245e13 (patch) | |
tree | 97dc684409134527b41bcb3214b0449c56e3061e /capchild | |
parent | 91b154236bf0afb2d82d2e596528f6d35d14b4a4 (diff) |
Win32: Make sure we zero out PROCESS_INFORMATION.
Make sure we zero our PROCESS_INFORMATION struct before passing it to
CreateProcess.
Change-Id: Ib42320965bb7b2d37a9fc106d78ace02153e48d2
Reviewed-on: https://code.wireshark.org/review/15154
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'capchild')
-rw-r--r-- | capchild/capture_sync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c index d1aceee5eb..f15110f995 100644 --- a/capchild/capture_sync.c +++ b/capchild/capture_sync.c @@ -645,9 +645,10 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, inf return FALSE; } - /* init STARTUPINFO */ + /* init STARTUPINFO & PROCESS_INFORMATION */ memset(&si, 0, sizeof(si)); si.cb = sizeof(si); + memset(&pi, 0, sizeof(pi)); #ifdef DEBUG_CHILD si.dwFlags = STARTF_USESHOWWINDOW; si.wShowWindow = SW_SHOW; @@ -916,9 +917,10 @@ sync_pipe_open_command(char** argv, int *data_read_fd, return -1; } - /* init STARTUPINFO */ + /* init STARTUPINFO & PROCESS_INFORMATION */ memset(&si, 0, sizeof(si)); si.cb = sizeof(si); + memset(&pi, 0, sizeof(pi)); #ifdef DEBUG_CHILD si.dwFlags = STARTF_USESHOWWINDOW; si.wShowWindow = SW_SHOW; |