summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/netlib_openconn.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mir_app/src/netlib_openconn.cpp b/src/mir_app/src/netlib_openconn.cpp
index 7f118f9dc2..a0a45e7f16 100644
--- a/src/mir_app/src/netlib_openconn.cpp
+++ b/src/mir_app/src/netlib_openconn.cpp
@@ -846,14 +846,15 @@ MIR_APP_DLL(int) Netlib_StartSsl(HNETLIBCONN hConnection, const char *szHost)
NetlibUser *nlu = nlc->nlu;
if (szHost == nullptr)
szHost = nlc->nloc.szHost;
+ szHost = NEWSTR_ALLOCA(szHost);
- Netlib_Logf(nlu, "(%d %s) Starting SSL negotiation", nlc->s, szHost);
- nlc->hSsl = sslApi.connect(nlc->s, szHost, nlu->settings.validateSSL);
+ Netlib_Logf(nlu, "(%d %s) Starting SSL negotiation", int(nlc->s), szHost);
+ nlc->hSsl = sslApi.connect(nlc->s, szHost, nlu->settings.validateSSL);
if (nlc->hSsl == nullptr)
- Netlib_Logf(nlu, "(%d %s) Failure to negotiate SSL connection", nlc->s, szHost);
+ Netlib_Logf(nlu, "(%d %s) Failure to negotiate SSL connection", int(nlc->s), szHost);
else
- Netlib_Logf(nlu, "(%d %s) SSL negotiation successful", nlc->s, szHost);
+ Netlib_Logf(nlu, "(%d %s) SSL negotiation successful", int(nlc->s), szHost);
return nlc->hSsl != nullptr;
}