mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 04:01:09 -04:00
Fix an inverted test for NOPEN in the unused function smb_smb_flush().
This commit is contained in:
parent
7636aa79ab
commit
08fe4bfbda
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ smb_smb_flush(struct smbnode *np, struct smb_cred *scred)
|
|||
struct mbchain *mbp;
|
||||
int error;
|
||||
|
||||
if ((np->n_flag & NOPEN) != 0 || !SMBTOV(np) ||
|
||||
if ((np->n_flag & NOPEN) == 0 || !SMBTOV(np) ||
|
||||
SMBTOV(np)->v_type != VREG)
|
||||
return 0; /* not a regular open file */
|
||||
error = smb_rq_init(rqp, SSTOCP(ssp), SMB_COM_FLUSH, scred);
|
||||
|
|
|
|||
Loading…
Reference in a new issue