diff options
author | Nils Larsch <nils@openssl.org> | 2006-01-30 00:12:22 +0100 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-01-30 00:12:22 +0100 |
commit | 8c5a2bd6bb9a8c2bb3e1b63c03e57bb1115275d1 (patch) | |
tree | 6f47255125d6970ab07881a58be1e7df1e4e9490 /engines/e_sureware.c | |
parent | Fixes for BOOL handling: produce errors for invalid string for mini-compiler, (diff) | |
download | openssl-8c5a2bd6bb9a8c2bb3e1b63c03e57bb1115275d1.tar.xz openssl-8c5a2bd6bb9a8c2bb3e1b63c03e57bb1115275d1.zip |
add additional checks + cleanup
Submitted by: David Hartman <david_hartman@symantec.com>
Diffstat (limited to 'engines/e_sureware.c')
-rw-r--r-- | engines/e_sureware.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/e_sureware.c b/engines/e_sureware.c index 424b82fd98..58fa9a98ee 100644 --- a/engines/e_sureware.c +++ b/engines/e_sureware.c @@ -976,11 +976,13 @@ static DSA_SIG * surewarehk_dsa_do_sign(const unsigned char *from, int flen, DSA if (!p_surewarehk_Dsa_Sign) { SUREWAREerr(SUREWARE_F_SUREWAREHK_DSA_DO_SIGN,ENGINE_R_NOT_INITIALISED); + goto err; } /* extract ref to private key */ else if (!(hptr=DSA_get_ex_data(dsa, dsaHndidx))) { SUREWAREerr(SUREWARE_F_SUREWAREHK_DSA_DO_SIGN,SUREWARE_R_MISSING_KEY_COMPONENTS); + goto err; } else { |