Commit a9fd5388 authored by Kamil Dudka's avatar Kamil Dudka
Browse files

nss: check return values of NSS functions

parent 65ca3b08
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1798,9 +1798,13 @@ static CURLcode nss_setup_connect(struct connectdata *conn, int sockindex)


  /* Force handshake on next I/O */
  SSL_ResetHandshake(connssl->handle, /* asServer */ PR_FALSE);
  if(SSL_ResetHandshake(connssl->handle, /* asServer */ PR_FALSE)
      != SECSuccess)
    goto error;

  SSL_SetURL(connssl->handle, conn->host.name);
  /* propagate hostname to the TLS layer */
  if(SSL_SetURL(connssl->handle, conn->host.name) != SECSuccess)
    goto error;

  return CURLE_OK;