projects
/
fwknop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2ae1449
)
minor update to use explicit FKO_SUCCESS value in if() result check
author
Michael Rash
<mbr@cipherdyne.org>
Fri, 9 Nov 2012 02:03:45 +0000 (21:03 -0500)
committer
Michael Rash
<mbr@cipherdyne.org>
Fri, 9 Nov 2012 02:03:45 +0000 (21:03 -0500)
lib/fko_encryption.c
patch
|
blob
|
history
diff --git
a/lib/fko_encryption.c
b/lib/fko_encryption.c
index
e366f7a
..
529fa41
100644
(file)
--- a/
lib/fko_encryption.c
+++ b/
lib/fko_encryption.c
@@
-376,7
+376,7
@@
fko_encrypt_spa_data(fko_ctx_t ctx, const char *enc_key)
if(ctx->encoded_msg == NULL || FKO_IS_SPA_DATA_MODIFIED(ctx))
res = fko_encode_spa_data(ctx);
- if(res)
+ if(res != FKO_SUCCESS)
return(res);
/* Croak on invalid encoded message as well. At present this is a