diff options
author | Pete Nelson <pete.nelson@unitedlex.com> | 2016-02-15 10:10:06 -0500 |
---|---|---|
committer | Pete Nelson <pete.nelson@unitedlex.com> | 2016-02-15 10:10:06 -0500 |
commit | 4a501dc306713e7b848c223564cd8acfa96f9483 (patch) | |
tree | 909679e87e651c49d9b342ff212a36d5c9910981 | |
parent | 792fa6373244c732d97ff69799b7739326774784 (diff) | |
download | openvpn-duo-plugin-4a501dc306713e7b848c223564cd8acfa96f9483.tar.gz openvpn-duo-plugin-4a501dc306713e7b848c223564cd8acfa96f9483.zip |
replace returns with esits for first child
-rw-r--r-- | duo_openvpn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/duo_openvpn.c b/duo_openvpn.c index b4ba6eb..f032645 100644 --- a/duo_openvpn.c +++ b/duo_openvpn.c @@ -84,12 +84,12 @@ auth_user_pass_verify(struct context *ctx, const char *args[], const char *envp[ pid = fork(); if (pid < 0) { - return OPENVPN_PLUGIN_FUNC_ERROR; + exit(OPENVPN_PLUGIN_FUNC_ERROR); } if (pid > 0) { /* first child forked ok, pass deferred return up to parent openvpn process */ - return OPENVPN_PLUGIN_FUNC_DEFERRED; + exit(OPENVPN_PLUGIN_FUNC_DEFERRED); } /* second child daemonizes so PID 1 can reap */ |