diff options
| author | Nathan Kinder <nkinder@redhat.com> | 2006-03-14 19:32:15 +0000 |
|---|---|---|
| committer | Nathan Kinder <nkinder@redhat.com> | 2006-03-14 19:32:15 +0000 |
| commit | 39df5f982ee9abb5357969a9086fa8dfe9e089a7 (patch) | |
| tree | 4535c26c80ce9ab9cded7eb610b9a74b902e015c | |
| parent | cd994fd6ad2eaf25e6cf4f8654e9c245f76404a3 (diff) | |
184585 - Adjusted the location of the connection lock when doing a sasl_rebind
| -rw-r--r-- | ldap/servers/slapd/saslbind.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ldap/servers/slapd/saslbind.c b/ldap/servers/slapd/saslbind.c index 5f899685..6d2f3ba1 100644 --- a/ldap/servers/slapd/saslbind.c +++ b/ldap/servers/slapd/saslbind.c @@ -887,12 +887,12 @@ void ids_sasl_check_bind(Slapi_PBlock *pb) * mechanism changed in the middle of the SASL authentication * process. */ if ((pb->pb_conn->c_flags & CONN_FLAG_SASL_COMPLETE) || continuing) { - /* Lock the connection mutex */ - PR_Lock(pb->pb_conn->c_mutex); - /* reset flag */ pb->pb_conn->c_flags &= ~CONN_FLAG_SASL_COMPLETE; + /* Lock the connection mutex */ + PR_Lock(pb->pb_conn->c_mutex); + /* remove any SASL I/O from the connection */ sasl_io_cleanup(pb->pb_conn); |
