nss: check return values of NSS functions

This commit is contained in:
Kamil Dudka 2015-09-18 17:07:22 +02:00
parent 65ca3b083c
commit a9fd53887b
1 changed files with 6 additions and 2 deletions

View File

@ -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;