]> git.sur5r.net Git - openldap/commitdiff
ITS#6101, did not always (re)set rs->sr_sasldata before send_ldap_sasl()
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 7 Jul 2009 22:31:35 +0000 (22:31 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 7 Jul 2009 22:31:35 +0000 (22:31 +0000)
servers/slapd/sasl.c

index 14e3d25b6eaf7885fe0fb439c4f5a9b8f4ebcdbd..e12a82946fad2fbc7ae0c9caa64b128f95ea5692 100644 (file)
@@ -1540,7 +1540,7 @@ int slap_sasl_bind( Operation *op, SlapReply *rs )
                }
 
                /* Must send response using old security layer */
-               if (response.bv_len) rs->sr_sasldata = &response;
+               rs->sr_sasldata = (response.bv_len ? &response : NULL);
                send_ldap_sasl( op, rs );
                
                /* Now dispose of the old security layer.