mirror of
https://github.com/curl/curl.git
synced 2026-05-30 12:27:29 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue