Index: res/res_config_ldap.c =================================================================== --- res/res_config_ldap.c (revision 234890) +++ res/res_config_ldap.c (working copy) @@ -1199,7 +1199,7 @@ ldap_mods[0]->mod_type = ast_calloc(sizeof(char), strlen(newparam) + 1); strcpy(ldap_mods[0]->mod_type, newparam); - ldap_mods[0]->mod_values = ast_calloc(sizeof(char), 2); + ldap_mods[0]->mod_values = ast_calloc(sizeof(char *), 2); ldap_mods[0]->mod_values[0] = ast_calloc(sizeof(char), strlen(newval) + 1); strcpy(ldap_mods[0]->mod_values[0], newval);