[PATCH openEuler-5.10 02/29] KEYS: Fix error path return value in pgp_generate_fingerprint