mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
snmp_hostres(3): Fix buffer overflow.
Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches. CID: 1007594 MFC after: 3 days
This commit is contained in:
parent
62c31cffae
commit
d37cb73c79
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285719
|
@ -175,7 +175,7 @@ get_printer_status(const struct printer *pp)
|
||||||
goto LABEL_DONE;
|
goto LABEL_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&fline[0], '\0', sizeof(line));
|
memset(&fline[0], '\0', sizeof(fline));
|
||||||
if (fgets(fline, sizeof(fline) -1, f) == NULL) {
|
if (fgets(fline, sizeof(fline) -1, f) == NULL) {
|
||||||
ps = PS_UNKNOWN;
|
ps = PS_UNKNOWN;
|
||||||
goto LABEL_DONE;
|
goto LABEL_DONE;
|
||||||
|
|
Loading…
Reference in a new issue