Commit 93227ddc authored by Nick Zitzmann's avatar Nick Zitzmann
Browse files

darwinssl: fix incorrect usage of aprintf()

Commit b13923f0 changed an snprintf() to use aprintf(), but the API usage
wasn't correct, and was causing a crash to occur. This fixes it.
parent cedf9960
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);