diff options
| author | Ian Moffett <ian@osmora.org> | 2024-10-03 21:40:17 -0500 | 
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2024-10-03 21:40:17 -0500 | 
| commit | b6db45eed57da6bc386b0a6092ce3673e92f3650 (patch) | |
| tree | 9b222591ecffe39781999ddd346d50be13344f80 | |
| parent | 7f5b307413a29502791fb8cbe6209c0b0f5d2006 (diff) | |
lib: auth: Fixup error handling
Signed-off-by: Ian Moffett <ian@osmora.org>
| -rw-r--r-- | lib/libostp/auth.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/libostp/auth.c b/lib/libostp/auth.c index b807485..13be3a8 100644 --- a/lib/libostp/auth.c +++ b/lib/libostp/auth.c @@ -134,13 +134,13 @@ session_td(void *args)      /* Try user auth, not needed if REQUIRE_USER_AUTH is 0 */      if (passwd_auth(tmp->c, tmp->session_key) != 0) {          free_session_key(tmp->session_key); -        exit(-1); +        return NULL;      }      /* Handle any requested session parameters */      if ((error = negotiate_spw(tmp->c, tmp->session_key)) < 0) {          free_session_key(tmp->session_key); -        exit(error); +        return NULL;      }      send_motd(tmp->c, tmp->session_key); | 
