mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
compat_passwd(): yet another uninitialized access to stayopen.
CID: 1018731
This commit is contained in:
parent
2627f31ff0
commit
b3d078e666
1 changed files with 1 additions and 1 deletions
|
|
@ -1942,7 +1942,7 @@ docompat:
|
|||
break;
|
||||
}
|
||||
fin:
|
||||
if (!stayopen && st->db != NULL) {
|
||||
if (st->db != NULL && !stayopen) {
|
||||
(void)st->db->close(st->db);
|
||||
st->db = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue