nss: check return values of NSS functions
This commit is contained in:
parent
65ca3b083c
commit
a9fd53887b
@ -1798,9 +1798,13 @@ static CURLcode nss_setup_connect(struct connectdata *conn, int sockindex)
|
|||||||
|
|
||||||
|
|
||||||
/* Force handshake on next I/O */
|
/* 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;
|
return CURLE_OK;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user