mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Remove an extraneous strlen from t_setdomainname.c
Reported by: Coverity CID: 1377568 MFC after: 15 days X-MFC-With: 320737 Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
808a9c8646
commit
97ae05e314
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ restore_domain(void)
|
|||
n += r;
|
||||
if (r < 0)
|
||||
err(1, "read");
|
||||
if (setdomainname(domain, strlen(domain)) != 0)
|
||||
if (setdomainname(domain, n) != 0)
|
||||
err(1, "setdomainname");
|
||||
close(fd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue