From aba9943fef8dcc8416ac9a219c97c616c1fd6344 Mon Sep 17 00:00:00 2001 From: Peiwei Hu Date: Sun, 14 Nov 2021 22:56:24 +0800 Subject: [PATCH] TXT_DB_write: fix the return check Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17028) --- test/sslapitest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2