Skip to content
Snippets Groups Projects
Commit 1fd3c797 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Validate outvalue after session param.

parent 37fceeb6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment