From: Hugo Landau Date: Mon, 29 Jan 2024 12:37:10 +0000 (+0000) Subject: JSON_ENC: Fix initial value of error X-Git-Tag: openssl-3.3.0-alpha1~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f997697a6a5fcb6996944a2732f65b5b83643b;p=thirdparty%2Fopenssl.git JSON_ENC: Fix initial value of error Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/22037) --- 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;