gsskrb5: Fix incorrect allocation failure check

This commit is contained in:
Nicolas Williams
2022-01-17 18:00:51 -06:00
parent 77c048db9b
commit 82b8c906e9

View File

@@ -730,7 +730,7 @@ gsskrb5_extract_key(OM_uint32 *minor_status,
}
*keyblock = calloc(1, sizeof(**keyblock));
if (keyblock == NULL) {
if (*keyblock == NULL) {
ret = ENOMEM;
goto out;
}