minor update to use explicit FKO_SUCCESS value in if() result check

This commit is contained in:
Michael Rash
2012-11-08 21:03:45 -05:00
parent 2ae1449122
commit 7afe5b28b7
+1 -1
View File
@@ -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