From 609ca3c823d564353400223afd5d0be7661aa78a Mon Sep 17 00:00:00 2001 From: jrblixt Date: Fri, 14 Apr 2017 02:34:31 -0600 Subject: [PATCH] Jenkin's Visual Studio status check correction. --- wolfcrypt/src/sha512.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/sha512.c b/wolfcrypt/src/sha512.c index 8b560d04c..3951550d2 100755 --- a/wolfcrypt/src/sha512.c +++ b/wolfcrypt/src/sha512.c @@ -540,11 +540,12 @@ static INLINE void AddLength(Sha512* sha512, word32 len) static INLINE int Sha512Update(Sha512* sha512, const byte* data, word32 len) { int ret = 0; + /* do block size increments */ + byte* local = (byte*)sha512->buffer; + if (sha512 == NULL || (data == NULL && len > 0)) { return BAD_FUNC_ARG; } - /* do block size increments */ - byte* local = (byte*)sha512->buffer; /* check that internal buffLen is valid */ if (sha512->buffLen > SHA512_BLOCK_SIZE)