diff options
author | Ted Gould <ted@gould.cx> | 2012-08-30 13:49:41 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-30 13:49:41 -0500 |
commit | c5549b6ee9ee88df4464dbbe2e2b9894ce80e6c4 (patch) | |
tree | d7d253fffe7c40044842b2e69e16e2bfee1e762a | |
parent | 8197309d3eb2f34aafaf637e61e6c1c7a4fa804a (diff) | |
download | libpam-x2go-c5549b6ee9ee88df4464dbbe2e2b9894ce80e6c4.tar.gz libpam-x2go-c5549b6ee9ee88df4464dbbe2e2b9894ce80e6c4.tar.bz2 libpam-x2go-c5549b6ee9ee88df4464dbbe2e2b9894ce80e6c4.zip |
Clear the session_pid after trying to kill it.
-rw-r--r-- | src/pam-freerdp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index 4b97bb8..88286c9 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -556,6 +556,10 @@ pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv } } + /* We reset this no matter. If we error'd trying to do it, we don't + want to try again. We'll just return the error for this time. */ + session_pid = 0; + done: return retval; } |