mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#6931 Catch NULL ld for LDAP_OPT_SESSION_REFCNT.
Klocwork issue#111, ldap_get_option().
This commit is contained in:
parent
a1cb490d0c
commit
06dca7858e
1 changed files with 4 additions and 0 deletions
|
|
@ -367,6 +367,10 @@ ldap_get_option(
|
|||
break;
|
||||
|
||||
case LDAP_OPT_SESSION_REFCNT:
|
||||
if(ld == NULL) {
|
||||
/* bad param */
|
||||
break;
|
||||
}
|
||||
* (int *) outvalue = ld->ld_ldcrefcnt;
|
||||
rc = LDAP_OPT_SUCCESS;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue