]> git.sur5r.net Git - openldap/commitdiff
send_ldap_controls() returns int, so fix return LBER_ERROR to -1.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 18 Jul 2005 06:28:28 +0000 (06:28 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 18 Jul 2005 06:28:28 +0000 (06:28 +0000)
servers/slapd/result.c

index 49f62c494d75a5aa01f3f557f1a94efbf6438b64..ee6f221bb1c556ddab71bf5bf7b84258fd6669d8 100644 (file)
@@ -293,7 +293,7 @@ send_ldap_controls( Operation *o, BerElement *ber, LDAPControl **c )
                ber_printf( sber, "{i}", LDAP_UNWILLING_TO_PERFORM );
 
                if( ber_flatten2( ber, &sorted.ldctl_value, 0 ) == -1 ) {
-                       return LBER_ERROR;
+                       return -1;
                }
 
                (void) ber_free_buf( ber );