]> git.sur5r.net Git - openldap/commitdiff
Add missing parens so that last commit behaves as desired.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 10 Mar 2000 18:16:22 +0000 (18:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 10 Mar 2000 18:16:22 +0000 (18:16 +0000)
libraries/libldap/request.c

index 48e8a2e42f9b8e838969ab312cab6ded91bf7926..27b2310ddc268a6e33a3b6f108ba810c2096401f 100644 (file)
@@ -829,10 +829,10 @@ re_encode_request( LDAP *ld, BerElement *origber, ber_int_t msgid, char **dnp )
                return( NULL );
        }
 
-       if ( tag != LDAP_REQ_DELETE &&
+       if ( tag != LDAP_REQ_DELETE && (
                ber_write(ber, tmpber.ber_ptr, ( tmpber.ber_end - tmpber.ber_ptr ), 0)
                != ( tmpber.ber_end - tmpber.ber_ptr ) ||
-           ber_printf( ber, /*{{*/ "}}" ) == -1 )
+           ber_printf( ber, /*{{*/ "}}" ) == -1 ) )
        {
                ld->ld_errno = LDAP_ENCODING_ERROR;
                ber_free( ber, 1 );