Skip to content

Commit

Permalink
call_filter: Set *out = NULL on g_spawn_async_with_pipes failure
Browse files Browse the repository at this point in the history
Fixes a zcrypt crash.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Mar 8, 2013
1 parent ba5e919 commit 3496369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filterproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ int call_filter(const char *const *argv, const char *in, char **out, int *status
NULL, NULL,
&child_pid, &child_stdin, &child_stdout, NULL,
NULL)) {
*out = NULL;
return 1;
}

Expand Down

0 comments on commit 3496369

Please sign in to comment.