diff --git a/lib/fko_encode.c b/lib/fko_encode.c index 2587dd95..2adb42ff 100644 --- a/lib/fko_encode.c +++ b/lib/fko_encode.c @@ -197,7 +197,7 @@ fko_encode_spa_data(fko_ctx_t ctx) ctx->encoded_msg_len = strnlen(ctx->encoded_msg, MAX_SPA_ENCODED_MSG_SIZE); - if(! is_valid_encoded_msg_len(ctx->encoded_msg_len)); + if(! is_valid_encoded_msg_len(ctx->encoded_msg_len)) return(FKO_ERROR_INVALID_DATA); /* At this point we can compute the digest for this SPA data.