matches = 0;
first = 1;
+ res = NULL;
while ( (rc = ldap_result( ld, LDAP_RES_ANY, sortattr ? 1 : 0, NULL, &res ))
== LDAP_RES_SEARCH_ENTRY ) {
matches++;
}
print_entry( ld, e, attrsonly );
ldap_msgfree( res );
+ res = NULL;
}
if ( rc == -1 ) {
ldap_perror( ld, "ldap_result" );
#define LBER_INVALID(tag) ( ( (tag) & 0xFFFFFF80UL ) != 0 )
#define LBER_ERROR 0xffffffffUL
#define LBER_DEFAULT 0xffffffffUL
-/* #define LBER_END_SEQORSET 0xfffffffeUL *//* not part of LDAP C-API */
+#define LBER_END_SEQORSET 0xfffffffeUL /* not part of LDAP C-API */
/* general BER types we know about */
#define LBER_BOOLEAN 0x01UL
tag = ber_skip_tag( ber, len );
- ber_free( ber, 1 );
+ ber_free( ber, 0 );
return( tag );
}
*/
if (ber->ber_rwptr == NULL) {
- /* assert( ber->ber_buf == NULL ); */
+ assert( ber->ber_buf == NULL );
ber->ber_rwptr = (char *) &ber->ber_tag;
ber->ber_tag = 0;
}