]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix a couple of issues in openvpn_execve()
authorDavid Sommerseth <davids@redhat.com>
Mon, 9 Jan 2012 17:07:28 +0000 (18:07 +0100)
committerDavid Sommerseth <davids@redhat.com>
Tue, 10 Jan 2012 13:22:10 +0000 (14:22 +0100)
commit8ee5646111625c598efbc82413649b1ab6275877
treeeaabf0f562425b5b1785c523a8cc7f9dc8467c84
parent9449e6a9eba30c9ed054f57d630a88c9f087080f
Fix a couple of issues in openvpn_execve()

If openvpn_execve() is not able to fork(), it would not make any noise
about it.  So this patch adds a log notification if this happens.

In addition, if openvpn_execve() is called with an empty argv array,
it should exit instantly.  This is not expected to happen at all and
might indicate a much more serious issue (or programming error)
somewhere else in the code.  Thus, abort execution to get these issues
flushed out as quickly as possible.

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
misc.c