send_ldap_controls() returns int, so fix return LBER_ERROR to -1.

This commit is contained in:
Hallvard Furuseth 2005-07-18 06:28:28 +00:00
parent 81ecb0b153
commit 03c85cc68d

View 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 );