return 0;
case LDAP_OPT_SERVER_CONTROLS:
+ /* not yet supported */
+ break;
+
case LDAP_OPT_CLIENT_CONTROLS:
/* not yet supported */
break;
return 0;
case LDAP_OPT_ERROR_STRING:
- /* not yet supported */
if(ld == NULL) {
/* bad param */
break;
} else {
* (char **) outvalue = ldap_strdup(ld->ld_error);
}
- break;
+ return 0;
case LDAP_OPT_API_FEATURE_INFO: {
LDAPAPIFeatureInfo *info = (LDAPAPIFeatureInfo *) outvalue;
case LDAP_OPT_DEBUG_LEVEL:
* (int *) outvalue = lo->ldo_debug;
- break;
+ return 0;
default:
/* bad param */
ld->ld_version = vers;
} return 0;
- case LDAP_OPT_SERVER_CONTROLS:
- case LDAP_OPT_CLIENT_CONTROLS:
- /* not yet supported */
- break;
+ case LDAP_OPT_SERVER_CONTROLS: {
+ /* not yet supported */
+ } break;
+
+ case LDAP_OPT_CLIENT_CONTROLS: {
+ /* not yet supported */
+ } break;
case LDAP_OPT_HOST_NAME: {
- char* host = * (char **) invalue;
+ char* host = (char *) invalue;
if(lo->ldo_defhost != NULL) {
free(lo->ldo_defhost);
} return 0;
case LDAP_OPT_ERROR_STRING: {
- char* err = * (char **) invalue;
+ char* err = (char *) invalue;
if(ld == NULL) {
/* need a struct ldap */