summaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2011-11-14 00:36:10 +0000
committerBen Laurie <ben@openssl.org>2011-11-14 00:36:10 +0000
commitae551760917614647ad6fbacec6e4c1b495a94cf (patch)
tree34a1985c9beb2aa0a43904de8e733796c40df48c /apps/enc.c
parentfe0686483621d420705e881cd9187788a0691583 (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.c10
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