瀏覽代碼

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
      * 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);