From 67f997697a6a5fcb6996944a2732f65b5b83643b Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 29 Jan 2024 12:37:10 +0000 Subject: [PATCH] JSON_ENC: Fix initial value of error Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/22037) --- ssl/quic/json_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/quic/json_enc.c b/ssl/quic/json_enc.c index 06da2adf885..302479a5d5a 100644 --- a/ssl/quic/json_enc.c +++ b/ssl/quic/json_enc.c @@ -233,7 +233,7 @@ int ossl_json_init(OSSL_JSON_ENC *json, BIO *bio, uint32_t flags) { memset(json, 0, sizeof(*json)); json->flags = flags; - json->error = 1; + json->error = 0; if (!wbuf_init(&json->wbuf, bio, 4096)) return 0; -- 2.47.2