Commit ba9db298 authored by gauthier's avatar gauthier
Browse files

segfault or memory corruption here

git-svn-id: 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 03487613
...@@ -123,7 +123,8 @@ int s6a_fd_new_peer(void) ...@@ -123,7 +123,8 @@ int s6a_fd_new_peer(void)
S6A_DEBUG("Diameter identity of MME: %s with length: %zd\n", S6A_DEBUG("Diameter identity of MME: %s with length: %zd\n",
fd_g_config->cnf_diamid, fd_g_config->cnf_diamid_len); 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); strcat(hss_name, mme_config.realm);
info.pi_diamid = hss_name; info.pi_diamid = hss_name;
info.pi_diamidlen = strlen(info.pi_diamid); 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