Fix for scan-build issues with possible use of null’s in evp.c wolfSSL_EVP_CipherFinal out arg and DoCertificate args->certs. Removed obsolete client example help arg “-t”.

This commit is contained in:
David Garske
2017-04-27 10:53:47 -07:00
parent 4363cf8a5c
commit 3e6243eb08
3 changed files with 3 additions and 3 deletions

View File

@@ -6809,6 +6809,7 @@ static int DoCertificate(WOLFSSL* ssl, byte* input, word32* inOutIdx,
if (args->certs == NULL) {
ERROR_OUT(MEMORY_E, exit_dc);
}
XMEMSET(args->certs, 0, sizeof(buffer) * MAX_CHAIN_DEPTH);
if ((args->idx - args->begin) + OPAQUE24_LEN > size) {
ERROR_OUT(BUFFER_ERROR, exit_dc);