X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fcontrols.c;h=9925357b0c2065a50d6764155424bd0f5b47eea2;hb=b0b8546f054f31b1a080defede171f833d20b124;hp=6dcf7364ecbc63d34f64d9e463107875f4a7e150;hpb=f61152ccbd54573573f27dba8f94e88dd2f41f61;p=openldap diff --git a/libraries/libldap/controls.c b/libraries/libldap/controls.c index 6dcf7364ec..9925357b0c 100644 --- a/libraries/libldap/controls.c +++ b/libraries/libldap/controls.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -365,7 +365,7 @@ ldap_control_dup( const LDAPControl *c ) } /* - * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* Adapted for inclusion into OpenLDAP by Kurt D. Zeilenga */ @@ -422,7 +422,7 @@ ldap_create_control( return LDAP_NO_MEMORY; } - if ( ber_flatten( ber, &bvalp ) == LBER_ERROR ) { + if ( ber_flatten( ber, &bvalp ) == -1 ) { LDAP_FREE( ctrl ); return LDAP_NO_MEMORY; }