]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Fix memset usage 1281/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 3 Oct 2017 16:03:56 +0000 (12:03 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 3 Oct 2017 16:03:56 +0000 (12:03 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/sha256.c

index e902021545a7bf9c33e89e153eb43a793b5434f1..37ced5b402de5ccb8e15dd11c25bfb267eab5f6c 100644 (file)
@@ -192,8 +192,8 @@ static void SHA256_Transform(uint32_t *state, const unsigned char block[64])
        /* Clean the stack. */
        memset(W, 0, 256);
        memset(S, 0, 32);
-       memset(t0, 0, sizeof(t0));
-       memset(t1, 0, sizeof(t0));
+       memset(&t0, 0, sizeof(t0));
+       memset(&t1, 0, sizeof(t0));
 }
 
 static unsigned char PAD[64] = {