diff options
author | Hugo Landau <hlandau@openssl.org> | 2024-01-29 12:37:10 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2024-02-02 11:50:29 +0000 |
commit | 67f997697a6a5fcb6996944a2732f65b5b83643b (patch) | |
tree | 070a4a45611cb9ea3e7dbb1c751ecd5f0897a715 /ssl | |
parent | c55e144b89fc8f917a897bf0756d85d3ce372160 (diff) |
JSON_ENC: Fix initial value of error
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/json_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/quic/json_enc.c b/ssl/quic/json_enc.c index 06da2adf88..302479a5d5 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; |