From: Hallvard Furuseth Date: Mon, 18 Jul 2005 06:28:28 +0000 (+0000) Subject: send_ldap_controls() returns int, so fix return LBER_ERROR to -1. X-Git-Tag: OPENLDAP_AC_BP~365 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03c85cc68dc845d2dd78ffbb722c12faf2c0e272;p=openldap send_ldap_controls() returns int, so fix return LBER_ERROR to -1. --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 49f62c494d..ee6f221bb1 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -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 );