mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Validate session handle
This commit is contained in:
parent
895296fbd3
commit
3498151f99
2 changed files with 9 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ ldap_search_ext(
|
|||
|
||||
Debug( LDAP_DEBUG_TRACE, "ldap_search_ext\n", 0, 0, 0 );
|
||||
|
||||
assert( ld != NULL );
|
||||
assert( LDAP_VALID( ld ) );
|
||||
|
||||
/*
|
||||
* if timeout is provided, both tv_sec and tv_usec must
|
||||
* be non-zero
|
||||
|
|
@ -207,6 +210,9 @@ ldap_search(
|
|||
|
||||
Debug( LDAP_DEBUG_TRACE, "ldap_search\n", 0, 0, 0 );
|
||||
|
||||
assert( ld != NULL );
|
||||
assert( LDAP_VALID( ld ) );
|
||||
|
||||
ber = ldap_build_search_req( ld, base, scope, filter, attrs,
|
||||
attrsonly, NULL, NULL, -1, -1 );
|
||||
|
||||
|
|
|
|||
|
|
@ -877,6 +877,9 @@ ldap_url_search( LDAP *ld, LDAP_CONST char *url, int attrsonly )
|
|||
BerElement *ber;
|
||||
LDAPreqinfo bind;
|
||||
|
||||
assert( ld != NULL );
|
||||
assert( LDAP_VALID( ld ) );
|
||||
|
||||
if ( ldap_url_parse( url, &ludp ) != 0 ) {
|
||||
ld->ld_errno = LDAP_PARAM_ERROR;
|
||||
return( -1 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue