mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
Validate outvalue after session param.
This commit is contained in:
parent
37fceeb662
commit
1fd3c797a8
1 changed files with 5 additions and 5 deletions
|
|
@ -88,11 +88,6 @@ ldap_get_option(
|
|||
ldap_int_initialize();
|
||||
}
|
||||
|
||||
if(outvalue == NULL) {
|
||||
/* no place to get to */
|
||||
return LDAP_OPT_ERROR;
|
||||
}
|
||||
|
||||
if(ld == NULL) {
|
||||
lo = &ldap_int_global_options;
|
||||
|
||||
|
|
@ -106,6 +101,11 @@ ldap_get_option(
|
|||
lo = &ld->ld_options;
|
||||
}
|
||||
|
||||
if(outvalue == NULL) {
|
||||
/* no place to get to */
|
||||
return LDAP_OPT_ERROR;
|
||||
}
|
||||
|
||||
switch(option) {
|
||||
case LDAP_OPT_API_INFO: {
|
||||
struct ldapapiinfo *info = (struct ldapapiinfo *) outvalue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue