summaryrefslogtreecommitdiff
path: root/src/ne_auth.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2011-05-03 11:58:24 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2011-05-03 11:58:24 +0000
commitafcc2b32c2c6978454025b460d73b44b74c17bc6 (patch)
treecf4ac4e04d18dded440b6eafbc2e0b55130770ea /src/ne_auth.c
parente07c4809d16cf57ed73ea2a4bd8a18580078193a (diff)
downloadneon-afcc2b32c2c6978454025b460d73b44b74c17bc6.tar.gz
* src/ne_auth.c
(ah_post_send): Clear SSPI context only after successful authentication. Submitted by: Ivan Zhakov <ivan visualsvn.com> git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1837 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_auth.c')
-rw-r--r--src/ne_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ne_auth.c b/src/ne_auth.c
index 2decc3f..1301e27 100644
--- a/src/ne_auth.c
+++ b/src/ne_auth.c
@@ -1551,8 +1551,8 @@ static int ah_post_send(ne_request *req, void *cookie, const ne_status *status)
}
#ifdef HAVE_SSPI
- /* Whatever happens: clear the SSPI context if it exists. */
- if (sess->sspi_context) {
+ /* Clear the SSPI context after successfull authentication. */
+ if ((status->klass == 2 || status->klass == 3) && sess->sspi_context) {
ne_sspi_clear_context(sess->sspi_context);
}
#endif