Commit ba9db298 authored by Lionel Gauthier's avatar Lionel Gauthier

segfault or memory corruption here

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5390 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 03487613
......@@ -123,7 +123,8 @@ int s6a_fd_new_peer(void)
S6A_DEBUG("Diameter identity of MME: %s with length: %zd\n",
fd_g_config->cnf_diamid, fd_g_config->cnf_diamid_len);
hss_name = strdup("hss.");
hss_name = calloc(1,100);
strcat(hss_name, "hss.");
strcat(hss_name, mme_config.realm);
info.pi_diamid = hss_name;
info.pi_diamidlen = strlen(info.pi_diamid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment