summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2005-07-03 03:54:59 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2005-07-03 03:54:59 +0000
commit0000adf31d88e3ad936a15d658921daaa9b00081 (patch)
treef4aa6ed7dfaa150fa483e3fe2aa6078a90ec5d70
parent8a4336f5109e6e489559ca64ba7333c2a7f36464 (diff)
downloadlibapr-0000adf31d88e3ad936a15d658921daaa9b00081.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.1.x@208880 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--threadproc/os2/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index 3ea770d0a..57f0afe67 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -375,8 +375,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;