mirror of https://github.com/openssl/openssl.git
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:
parent
0650ac437b
commit
aba9943fef
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue