Home GnuPG

Make sure to return correct error codes for secmem failures.
1351cc95b5eeUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Make sure to return correct error codes for secmem failures.

ERRNO was not always set and thus it could happen that a misleading
error code was returned form a malloc functions. Fix was to set
ERRNO.

At one place we also switched to the newer gpg_err_code_from_syserror
which makes sure to return a special error code in case ERRNO is not
set at all.

Details

Provenance
wernerAuthored on Apr 19 2011, 4:22 PM
Parents
rC8ecc5614cc40: Fix double free in gcry_pk_get_keygrip.
Branches
Unknown
Tags
Unknown

Event Timeline