case ATTR_STRING:
if (* (char**) p != NULL) free(* (char**) p);
- * (char**) p = strdup(opt);
+ * (char**) p = ldap_strdup(opt);
break;
}
}
if (*value == '\0') {
* (char**) p = NULL;
} else {
- * (char**) p = strdup(value);
+ * (char**) p = ldap_strdup(value);
}
break;
}
gopts.ldo_timelimit = LDAP_NO_LIMIT;
gopts.ldo_sizelimit = LDAP_NO_LIMIT;
- gopts.ldo_defhost = strdup("localhost");
+ gopts.ldo_defhost = ldap_strdup("localhost");
gopts.ldo_defport = LDAP_PORT;
gopts.ldo_refhoplimit = LDAP_DEFAULT_REFHOPLIMIT;