TXT_DB_write: fix the return check

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17028)
This commit is contained in:
Peiwei Hu 2021-11-14 22:56:24 +08:00 committed by Tomas Mraz
parent 0650ac437b
commit aba9943fef
1 changed files with 1 additions and 1 deletions

View File

@ -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;