Undoing previous commit for Bug 1431940 draft
authorVenkatesh Pitta <venkateshpitta@gmail.com>
Thu, 12 Apr 2018 11:31:19 +1000
changeset 780900 ec7d34c64d27580d45d23d77c967e1abcf3ec3e7
parent 780899 2663ac30ef8fcc04dbd9586e41e63698c998963a
child 780901 14217dd3f65fa477aabe97396784e11f08b7f1e4
push id106157
push userbmo:venkateshpitta@gmail.com
push dateThu, 12 Apr 2018 07:08:57 +0000
bugs1431940
milestone61.0a1
Undoing previous commit for Bug 1431940
security/nss/lib/freebl/blake2b.c
--- a/security/nss/lib/freebl/blake2b.c
+++ b/security/nss/lib/freebl/blake2b.c
@@ -213,21 +213,16 @@ blake2b_IncrementCompress(BLAKE2BContext
 /**
  * This function updates blake2b ctx and can be used for both keyed and unkeyed
  * version.
  */
 SECStatus
 BLAKE2B_Update(BLAKE2BContext* ctx, const unsigned char* in,
                unsigned int inlen)
 {
-    PORT_Assert(ctx != NULL);
-    if (!ctx) {
-        PORT_SetError(SEC_ERROR_INVALID_ARGS);
-        return SECFailure;
-    }
     size_t left = ctx->buflen;
     size_t fill = BLAKE2B_BLOCK_LENGTH - left;
 
     /* Nothing to do if there's nothing. */
     if (inlen == 0) {
         return SECSuccess;
     }