HomePhabricator

pki: NULL check pki_signature_from_rsa_blob result

Authored by simonsj on Tue, Jan 29, 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>
(cherry picked from commit ccd73db90c9ff1c9e945939e78d735f97e525dae)

Details

Committed
asnThu, Feb 7, 2:22 PM
Parents
rLIBSSHe69fb89e98b7: pki_container_openssh: Add padding to be compatible with OpenSSH
Branches
Unknown
Tags
Unknown