Fixed several coverity issues and a small issue in configuration files (accidental #can_define) statements.

This commit is contained in:
MatrixSSL Administrator
2016-10-13 15:41:50 +03:00
parent ed41b2d86d
commit d7e11fb189
12 changed files with 52 additions and 41 deletions

View File

@@ -4360,7 +4360,8 @@ static int32 writeCertificateStatus(ssl_t *ssl, sslBuf_t *out)
} response;
} CertificateStatus; */
*c = 0x1; c++;
*c = (unsigned char)((ocspLen & 0xFF0000) >> 16); c++;
/* ocspLen is 16 bit value. */
*c = 0; c++;
*c = (ocspLen & 0xFF00) >> 8; c++;
*c = (ocspLen & 0xFF); c++;
memcpy(c, ssl->keys->OCSPResponseBuf, ocspLen);