diff --git a/netwerk/protocol/ftp/src/nsFtpControlConnection.cpp b/netwerk/protocol/ftp/src/nsFtpControlConnection.cpp index 73db50772890..3ff1e445575c 100644 --- a/netwerk/protocol/ftp/src/nsFtpControlConnection.cpp +++ b/netwerk/protocol/ftp/src/nsFtpControlConnection.cpp @@ -120,6 +120,7 @@ nsFtpControlConnection::nsFtpControlConnection(const char* host, PRUint32 port) NS_INIT_REFCNT(); PR_LOG(gFTPLog, PR_LOG_ALWAYS, ("(%x) nsFtpControlConnection created", this)); + mHost.Adopt(nsCRT::strdup(host)); mPort = port; mServerType = 0; mConnected = PR_FALSE;