]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/options.c
Merge remote branch 'origin/mdb.master'
[openldap] / libraries / libldap / options.c
index 3d940972d6b6e7915ea5a8fd57ba8c449ca11b43..956c5ef0a444ae242f774bfb3a2104ad9c3b5156 100644 (file)
@@ -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;