ソースを参照

184585 - Adjusted the location of the connection lock when doing a sasl_rebind

Nathan Kinder 19 年 前
コミット
39df5f982e
1 ファイル変更3 行追加3 行削除
  1. 3 3
      ldap/servers/slapd/saslbind.c

+ 3 - 3
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
      * mechanism changed in the middle of the SASL authentication
      * process. */
      * process. */
     if ((pb->pb_conn->c_flags & CONN_FLAG_SASL_COMPLETE) || continuing) {
     if ((pb->pb_conn->c_flags & CONN_FLAG_SASL_COMPLETE) || continuing) {
-        /* Lock the connection mutex */
-        PR_Lock(pb->pb_conn->c_mutex);
-
         /* reset flag */
         /* reset flag */
         pb->pb_conn->c_flags &= ~CONN_FLAG_SASL_COMPLETE;
         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 */
         /* remove any SASL I/O from the connection */
         sasl_io_cleanup(pb->pb_conn);
         sasl_io_cleanup(pb->pb_conn);