Index: res/res_config_ldap.c =================================================================== --- res/res_config_ldap.c (révision 108395) +++ res/res_config_ldap.c (copie de travail) @@ -1423,8 +1423,8 @@ port = 389; ast_copy_string(host + strlen(host), ":389", sizeof(host)); } else { - ast_copy_string(host + 1, ":", sizeof(s)); - ast_copy_string(host + strlen(host), s, sizeof(s)); + ast_copy_string(host + strlen(host), ":", sizeof(host)); + ast_copy_string(host + strlen(host), s, sizeof(host)); port = atoi(s); }