[libfko] fixed remaining sizeof() usage bug in SHA256 code found by Coverity
authorMichael Rash <mbr@cipherdyne.org>
Fri, 10 May 2013 02:14:06 +0000 (22:14 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Fri, 10 May 2013 02:14:06 +0000 (22:14 -0400)
lib/sha2.c

index dd81ce5..af9d821 100644 (file)
@@ -665,7 +665,7 @@ char *SHA256_End(SHA256_CTX* context, char buffer[]) {
                }
                *buffer = (char)0;
        } else {
-               MEMSET_BZERO(context, sizeof(context));
+               MEMSET_BZERO(context, sizeof(*context));
        }
        MEMSET_BZERO(digest, SHA256_DIGEST_LEN);
        return buffer;