summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorFabian Knittel <fabian.knittel@avona.com>2010-05-04 16:21:47 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 21:26:42 +0200
commit8bebb729a53ae423d0867648f0c12868a96cafde (patch)
treeb893b8d7e6301a8bba2ccc5b9c68e621d4f976bc /options.c
parentc2533d18ce6da1bd43502f9f2923541c578864e9 (diff)
downloadopenvpn-8bebb729a53ae423d0867648f0c12868a96cafde.tar.gz
openvpn-8bebb729a53ae423d0867648f0c12868a96cafde.tar.xz
openvpn-8bebb729a53ae423d0867648f0c12868a96cafde.zip
ssl.c: fix use of openvpn_run_script()'s return value
This patch fixes two bugs introduced in commit 339f2a4d4b487afa53fa99d72c35b16f31e417d3 Author: David Sommerseth <dazo@users.sourceforge.net> Date: Thu Apr 29 23:35:45 2010 +0200 David's patch replaced openvpn_execve() with openvpn_run_script() in two places, but didn't adjust the return value handling. openvpn_run_script() returns true or false, while openvpn_execve() returns the program's exit code. Without the fix, the --tls-verify script and the --auth-user-pass-verify script fail to run. (I noticed the latter, but haven't actually tested the former.) The return value handling is fine for the other places where openvpn_run_script() is used, because those places previously used openvpn_execve_check() (notice the "_check" suffix). Signed-off-by: Fabian Knittel <fabian.knittel@avona.com> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'options.c')
0 files changed, 0 insertions, 0 deletions