mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Add error handling cleanup
This commit is contained in:
parent
99f5983fb6
commit
40ef77a8f8
2 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue