]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/controls.c
Patch: More format bugs (ITS#1702)
[openldap] / libraries / libldap / controls.c
index 1ad762b38461622b772e0c385e593ce569b8b4e1..9925357b0c2065a50d6764155424bd0f5b47eea2 100644 (file)
@@ -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;
        }