]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
TXT_DB_write: fix the return check
authorPeiwei Hu <jlu.hpw@foxmail.com>
Sun, 14 Nov 2021 14:56:24 +0000 (22:56 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 22 Nov 2021 14:21:54 +0000 (15:21 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17028)

(cherry picked from commit aba9943fef8dcc8416ac9a219c97c616c1fd6344)

test/sslapitest.c

index 4017d47a77be465fde4003777f9c7617757b8c93..041bc5f210943477772a982f1e7c10fb3d380f9d 100644 (file)
@@ -6786,7 +6786,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;