Skip to content

Commit

Permalink
darwinssl: fix incorrect usage of aprintf()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nickzman committed Dec 15, 2014
1 parent cedf996 commit 93227dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vtls/curl_darwinssl.c
Expand Up @@ -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);
Expand Down

0 comments on commit 93227dd

Please sign in to comment.