From 7afe5b28b7cc1c560bd10e73f51b302ae96ac08e Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 8 Nov 2012 21:03:45 -0500 Subject: [PATCH] minor update to use explicit FKO_SUCCESS value in if() result check --- lib/fko_encryption.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fko_encryption.c b/lib/fko_encryption.c index e366f7ad..529fa411 100644 --- 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