From: Timo Sirainen Date: Tue, 24 Mar 2020 09:59:23 +0000 (+0200) Subject: lib-oauth2: Add assert to make sure json_parse_next() doesn't think istream is nonblo... X-Git-Tag: 2.3.11.2~514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a46e159d8cac1c25fd164cdd2cb6bf1352e46bd;p=thirdparty%2Fdovecot%2Fcore.git lib-oauth2: Add assert to make sure json_parse_next() doesn't think istream is nonblocking --- diff --git a/src/lib-oauth2/oauth2.c b/src/lib-oauth2/oauth2.c index 5cee85cbff..f5edfab740 100644 --- a/src/lib-oauth2/oauth2.c +++ b/src/lib-oauth2/oauth2.c @@ -24,6 +24,7 @@ int oauth2_json_tree_build(const buffer_t *json, struct json_tree **tree_r, ret = json_tree_append(tree, type, value); i_assert(ret == 0); } + i_assert(ret != 0); ret = json_parser_deinit(&parser, error_r); i_stream_unref(&is); if (ret != 0)