projects
/
platform
/
core
/
security
/
yaca.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use "!= 0" instead of "< 0" when handling yaca errors
[platform/core/security/yaca.git]
/
src
/
encrypt.c
diff --git
a/src/encrypt.c
b/src/encrypt.c
index
86572e2
..
0237af9
100644
(file)
--- a/
src/encrypt.c
+++ b/
src/encrypt.c
@@
-429,7
+429,7
@@
API int yaca_get_iv_bits(yaca_enc_algo_e algo,
int ret;
ret = encrypt_get_algorithm(algo, bcm, key_bits, &cipher);
- if (ret
<
0)
+ if (ret
!=
0)
return ret;
ret = EVP_CIPHER_iv_length(cipher);