diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2005-07-03 03:59:45 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2005-07-03 03:59:45 +0000 |
commit | ae0e833e9afb42456a0283fd3b1106f6a350ed1b (patch) | |
tree | d432eebc80fc689ad373eb52f19c1c34b8aa2c9c | |
parent | efe3796dfb5d7a6222bc5fc5903e4936c3425fcd (diff) | |
download | libapr-ae0e833e9afb42456a0283fd3b1106f6a350ed1b.tar.gz |
OS/2: Fix crash in apr_proc_create with non-shell type process creation where
the .exe extension is not given. Was trying to close an apr_file_t that had
failed to open, causing a segfault.
Backport from trunk of r208879.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.0.x@208882 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | threadproc/os2/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c index 4edb45221..ff3277fce 100644 --- a/threadproc/os2/proc.c +++ b/threadproc/os2/proc.c @@ -374,8 +374,9 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *proc, const char *progname interpreter[0] = 0; } } + + apr_file_close(progfile); } - apr_file_close(progfile); } i = 0; |