]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/compare.c
Minor adjustments based upon initial read of draft-ietf-ldapext-ldap-c-api-04.txt.
[openldap] / libraries / libldap / compare.c
index 21a99aa80d3a1ec26dda6af0d06b7e306133ec0c..e7ddcc70aac449274a05c298b224a0d1595cf632 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -61,11 +62,11 @@ ldap_compare_ext(
        assert( msgidp != NULL );
 
        /* create a message to send */
-       if ( (ber = ldap_alloc_ber_with_options( ld )) == NULLBER ) {
+       if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) {
                return( LDAP_NO_MEMORY );
        }
 
-       if ( ber_printf( ber, "{it{s{sO}}", /* leave open '}' */
+       if ( ber_printf( ber, "{it{s{sO}}", /* '}' */
                ++ld->ld_msgid,
                LDAP_REQ_COMPARE, dn, attr, &bvalue ) == -1 )
        {
@@ -80,7 +81,7 @@ ldap_compare_ext(
                return ld->ld_errno;
        }
 
-       if( ber_printf( ber, "}" ) == -1 ) {
+       if( ber_printf( ber, /*{*/ "}" ) == -1 ) {
                ld->ld_errno = LDAP_ENCODING_ERROR;
                ber_free( ber, 1 );
                return( ld->ld_errno );