Skip to content
Snippets Groups Projects
Commit a9fd5388 authored by Kamil Dudka's avatar Kamil Dudka
Browse files

nss: check return values of NSS functions

parent 65ca3b08
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment