updates.
[crypto.git] / lib / silcclient / client.c
index 0440478dc2230a3d4f40f3fdc1512fc09407007d..58bcad2b44871972ce3c4b2f288c24d1c959c0aa 100644 (file)
@@ -371,7 +371,7 @@ bool silc_client_start_key_exchange(SilcClient client,
   silc_schedule_task_del_by_fd(client->schedule, fd);
 
   conn->nickname = strdup(client->username);
-  conn->sock->hostname = conn->remote_host;
+  conn->sock->hostname = strdup(conn->remote_host);
   conn->sock->ip = strdup(conn->remote_host);
   conn->sock->port = conn->remote_port;