diff options
Diffstat (limited to 'lib/ssl_nss.c')
| -rw-r--r-- | lib/ssl_nss.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/ssl_nss.c b/lib/ssl_nss.c index e8de884f..045cd322 100644 --- a/lib/ssl_nss.c +++ b/lib/ssl_nss.c @@ -151,7 +151,7 @@ void *ssl_starttls(int fd, char *hostname, gboolean verify,  	conn->fd = fd;  	conn->func = func;  	conn->data = data; -	conn->hostname = hostname; +	conn->hostname = g_strdup(hostname);  	/* For now, SSL verification is globally enabled by setting the cafile  	   setting in bitlbee.conf. Commented out by default because probably @@ -295,7 +295,7 @@ void ssl_disconnect(void *conn_)  	if (conn->prfd)  		PR_Close(conn->prfd); -        g_free(conn->hostname); +	g_free(conn->hostname);  	g_free(conn);  } | 
