Skip to content
Prev Previous commit
Next Next commit
Enable cache, compare name has to return 1 on success
  • Loading branch information
tiran committed Jan 8, 2022
commit ae88881cd19810b44ef5971f18edd810afbdf737
2 changes: 1 addition & 1 deletion Modules/_hashopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ py_hashentry_t_hash_name(const void *key) {

static int
py_hashentry_t_compare_name(const void *key1, const void *key2) {
return strcmp((const char *)key1, (const char *)key2);
return strcmp((const char *)key1, (const char *)key2) == 0;
}

static void
Expand Down