mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
ftpd: Add missing braces around a statfd check
This was harmless but looked incorrect. No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
0aabff2880
commit
3c0c1e01c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366003
@ -1530,7 +1530,7 @@ skip:
|
||||
setusercontext(lc, pw, 0, LOGIN_SETRESOURCES);
|
||||
#endif
|
||||
|
||||
if (guest && stats && statfd < 0)
|
||||
if (guest && stats && statfd < 0) {
|
||||
#ifdef VIRTUAL_HOSTING
|
||||
statfd = open(thishost->statfile, O_WRONLY|O_APPEND);
|
||||
#else
|
||||
@ -1538,6 +1538,7 @@ skip:
|
||||
#endif
|
||||
if (statfd < 0)
|
||||
stats = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* For a chrooted local user,
|
||||
|
Loading…
Reference in New Issue
Block a user