mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
darwinssl: fix incorrect usage of aprintf()
Commit b13923f
changed an snprintf() to use aprintf(), but the API usage
wasn't correct, and was causing a crash to occur. This fixes it.
This commit is contained in:
parent
cedf996073
commit
93227ddca5
@ -1482,7 +1482,7 @@ static CURLcode darwinssl_connect_step1(struct connectdata *conn,
|
||||
to starting the handshake. */
|
||||
else {
|
||||
CURLcode retcode;
|
||||
ssl_sessionid = aprintf(ssl_sessionid, "curl:%s:%hu",
|
||||
ssl_sessionid = aprintf("curl:%s:%hu",
|
||||
conn->host.name, conn->remote_port);
|
||||
ssl_sessionid_len = strlen(ssl_sessionid);
|
||||
err = SSLSetPeerID(connssl->ssl_ctx, ssl_sessionid, ssl_sessionid_len);
|
||||
|
Loading…
Reference in New Issue
Block a user