]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/bind.c
ITS#3092: Rename sl_free() and friends to slap_sl_free()
[openldap] / servers / slapd / bind.c
index c360ea30431977b047ffa5d6dfb5ee3a6c56da59..ddeec15a143f8d725a84f91ca81d20eb5108c1fb 100644 (file)
@@ -47,8 +47,8 @@ do_bind(
        BerElement *ber = op->o_ber;
        ber_int_t version;
        ber_tag_t method;
-       struct berval mech = { 0, NULL };
-       struct berval dn = { 0, NULL };
+       struct berval mech = BER_BVNULL;
+       struct berval dn = BER_BVNULL;
        ber_tag_t tag;
        Backend *be = NULL;
 
@@ -715,11 +715,11 @@ cleanup:
        op->o_conn->c_sasl_bindop = NULL;
 
        if( op->o_req_dn.bv_val != NULL ) {
-               sl_free( op->o_req_dn.bv_val, op->o_tmpmemctx );
+               slap_sl_free( op->o_req_dn.bv_val, op->o_tmpmemctx );
                op->o_req_dn.bv_val = NULL;
        }
        if( op->o_req_ndn.bv_val != NULL ) {
-               sl_free( op->o_req_ndn.bv_val, op->o_tmpmemctx );
+               slap_sl_free( op->o_req_ndn.bv_val, op->o_tmpmemctx );
                op->o_req_ndn.bv_val = NULL;
        }