Skip to content

Commit 84acb27

Browse files
authored
Compare SA and SB, instead of SA and itself
1 parent a097e49 commit 84acb27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/sm9test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static int sm9test_exch(const char *idA, const char *idB)
356356
goto end;
357357
}
358358

359-
if (memcmp(SKA, SKA, sizeof(SKA)) != 0 || memcmp(SA, S2, sizeof(SA)) != 0) {
359+
if (memcmp(SKA, SKB, sizeof(SKA)) != 0 || memcmp(SA, S2, sizeof(SA)) != 0) {
360360
goto end;
361361
}
362362

0 commit comments

Comments
 (0)