This commit is contained in:
Zhi Guan
2020-05-25 17:53:28 +08:00
2 changed files with 13 additions and 1 deletions

View File

@@ -356,7 +356,7 @@ static int sm9test_exch(const char *idA, const char *idB)
goto end;
}
if (memcmp(SKA, SKA, sizeof(SKA)) != 0 || memcmp(SA, S2, sizeof(SA)) != 0) {
if (memcmp(SKA, SKB, sizeof(SKA)) != 0 || memcmp(SA, S2, sizeof(SA)) != 0) {
goto end;
}