Add error handling cleanup

This commit is contained in:
Kurt Zeilenga 2002-06-05 15:51:42 +00:00
parent 99f5983fb6
commit 40ef77a8f8
2 changed files with 4 additions and 0 deletions

View file

@ -90,6 +90,8 @@ ldap_get_dn( LDAP *ld, LDAPMessage *entry )
Debug( LDAP_DEBUG_TRACE, "ldap_get_dn\n", 0, 0, 0 );
#endif
assert( ld != NULL );
assert( LDAP_VALID(ld) );
assert( entry != NULL );
tmp = *entry->lm_ber; /* struct copy */

View file

@ -80,6 +80,7 @@ ldap_create_vlv_control( LDAP *ld,
BerElement *ber;
assert( ld != NULL );
assert( LDAP_VALID( ld ) );
assert( vlvinfop != NULL );
assert( ctrlp != NULL );
@ -203,6 +204,7 @@ ldap_parse_vlv_control(
ber_len_t berLen;
assert( ld != NULL );
assert( LDAP_VALID( ld ) );
if (contextp) {
*contextp = NULL; /* Make sure we return a NULL if error occurs. */