mirror of
https://github.com/curl/curl.git
synced 2026-06-02 03:34:15 +03:00
nss: check return values of NSS functions
This commit is contained in:
parent
65ca3b083c
commit
a9fd53887b
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue