From: Peiwei Hu Date: Sun, 14 Nov 2021 14:56:24 +0000 (+0800) Subject: TXT_DB_write: fix the return check X-Git-Tag: openssl-3.2.0-alpha1~3309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba9943fef8dcc8416ac9a219c97c616c1fd6344;p=thirdparty%2Fopenssl.git TXT_DB_write: fix the return check Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17028) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index 00f27cb78e9..29c125004aa 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -6802,7 +6802,7 @@ static int create_new_vfile(char *userid, char *password, const char *filename) row = NULL; - if (!TXT_DB_write(out, db)) + if (TXT_DB_write(out, db) <= 0) goto end; ret = 1;