Permalink
Browse files

call_filter: Set *out = NULL on g_spawn_async_with_pipes failure

Fixes a zcrypt crash.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
1 parent ba5e919 commit 3496369c2871b87831bd7bcfef61f8cc5bf36a3c @andersk andersk committed Mar 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 filterproc.c
View
1 filterproc.c
@@ -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;
}

0 comments on commit 3496369

Please sign in to comment.