]> git.sur5r.net Git - openldap/commitdiff
Overlay result is in rs->sr_err
authorHoward Chu <hyc@openldap.org>
Fri, 4 Feb 2011 17:36:49 +0000 (17:36 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 4 Feb 2011 17:36:49 +0000 (17:36 +0000)
servers/slapd/back-sock/config.c

index 92f5f56e506f1d745be20eae692e56057b474da5..4f2f3d7db6ed02d6ea8f5a70ed9dbb866f3620f1 100644 (file)
@@ -251,7 +251,6 @@ static int sock_over_op(
        slap_callback *sc;
        struct sockinfo *si;
        slap_operation_t which;
-       int rc;
 
        switch (op->o_tag) {
        case LDAP_REQ_BIND:     which = op_bind; break;
@@ -272,10 +271,10 @@ static int sock_over_op(
        op->o_bd->be_private = si;
        sc = op->o_callback;
        op->o_callback = NULL;
-       rc = sockfuncs[which]( op, rs );
+       sockfuncs[which]( op, rs );
        op->o_bd->be_private = private;
        op->o_callback = sc;
-       return rc;
+       return rs->sr_err;
 }
 
 static int