From 03c85cc68dc845d2dd78ffbb722c12faf2c0e272 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 18 Jul 2005 06:28:28 +0000 Subject: [PATCH] send_ldap_controls() returns int, so fix return LBER_ERROR to -1. --- servers/slapd/result.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5