Validate outvalue after session param.

This commit is contained in:
Kurt Zeilenga 1999-06-28 22:22:27 +00:00
parent 37fceeb662
commit 1fd3c797a8

View file

@ -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;