aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-30 13:49:41 -0500
committerTed Gould <ted@gould.cx>2012-08-30 13:49:41 -0500
commit73858946b83ff5fe24aea484af32bb8ed4c1a1c2 (patch)
treed7d253fffe7c40044842b2e69e16e2bfee1e762a /src
parent0501a4375073d9e098446cb3b4c1515b08704a23 (diff)
downloadlibpam-freerdp2-73858946b83ff5fe24aea484af32bb8ed4c1a1c2.tar.gz
libpam-freerdp2-73858946b83ff5fe24aea484af32bb8ed4c1a1c2.tar.bz2
libpam-freerdp2-73858946b83ff5fe24aea484af32bb8ed4c1a1c2.zip
Clear the session_pid after trying to kill it.
Diffstat (limited to 'src')
-rw-r--r--src/pam-freerdp.c4
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;
}