diff options
Diffstat (limited to 'sm')
-rw-r--r-- | sm/export.c | 3 | ||||
-rw-r--r-- | sm/import.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sm/export.c b/sm/export.c index 61d827b9b..2ded1ff62 100644 --- a/sm/export.c +++ b/sm/export.c @@ -715,8 +715,9 @@ export_p12 (ctrl_t ctrl, const unsigned char *certimg, size_t certimglen, es_fclose (fp); if (pid != -1) { - if (!gnupg_wait_process (pgmname, pid, NULL)) + if (!gnupg_wait_process (pgmname, pid, 0, NULL)) child_err = 0; + gnupg_release_process (pid); } if (!err) err = child_err; diff --git a/sm/import.c b/sm/import.c index 71cefff65..6a012ca66 100644 --- a/sm/import.c +++ b/sm/import.c @@ -773,8 +773,9 @@ parse_p12 (ctrl_t ctrl, ksba_reader_t reader, es_fclose (fp); if (pid != -1) { - if (!gnupg_wait_process (pgmname, pid, NULL)) + if (!gnupg_wait_process (pgmname, pid, 0, NULL)) child_err = 0; + gnupg_release_process (pid); } if (!err) err = child_err; |