diff options
author | Ben Laurie <ben@openssl.org> | 2011-11-14 00:36:10 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2011-11-14 00:36:10 +0000 |
commit | ae551760917614647ad6fbacec6e4c1b495a94cf (patch) | |
tree | 34a1985c9beb2aa0a43904de8e733796c40df48c /apps/enc.c | |
parent | fe0686483621d420705e881cd9187788a0691583 (diff) |
Fix some warnings caused by __owur. Temporarily (I hope) remove the more
aspirational __owur annotations.
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/enc.c b/apps/enc.c index 076225c4cb..8c5527783b 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -549,9 +549,13 @@ bad: sptr = salt; } - EVP_BytesToKey(cipher,dgst,sptr, - (unsigned char *)str, - strlen(str),1,key,iv); + if (!EVP_BytesToKey(cipher,dgst,sptr, + (unsigned char *)str, + strlen(str),1,key,iv)) + { + BIO_printf(bio_err, "EVP_BytesToKey failed\n"); + goto end; + } /* zero the complete buffer or the string * passed from the command line * bug picked up by |