HomePhabricator

pki: NULL check pki_signature_from_rsa_blob result

Authored by simonsj on Jan 29 2019, 10:16 PM.

Description

pki: NULL check pki_signature_from_rsa_blob result

Check for a potential NULL result from pki_signature_from_rsa_blob
in pki_signature_from_blob. Otherwise the following sig->type_c
will result in a segfault.

Introduced in 7f83a1efae6a7da19e18268d6298fc11b4e68c57.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnJan 30 2019, 1:22 PM
Parents
rLIBSSH3760e59c13c2: dh: harden error handling in 'ssh_dh_init_common'
Branches
Unknown
Tags
Unknown