Skip to content

Commit c3098d8

Browse files
authored
Merge pull request #1 from luohua-xyz/luohua-xyz-patch1
Compare SA and SB, instead of SA and itself
2 parents a097e49 + 84acb27 commit c3098d8

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)