mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fix an error check after r342699.
Reported by: gcc MFC with: r342699 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
0fe1808c72
commit
2e4c75c15e
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ writebounds(int savedirfd, int bounds)
|
|||
FILE *fp;
|
||||
|
||||
if ((fp = xfopenat(savedirfd, "bounds", O_WRONLY | O_CREAT | O_TRUNC,
|
||||
"w", 0644)) < 0) {
|
||||
"w", 0644)) == NULL) {
|
||||
logmsg(LOG_WARNING, "unable to write to bounds file: %m");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue