mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 07:14:26 +01:00
s/optarg/s/ (cut'n'paste braino)
Spotted by: kris
This commit is contained in:
parent
8302d183f3
commit
dacff75286
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102478
@ -781,17 +781,15 @@ main(int argc, char *argv[])
|
|||||||
/* timeouts */
|
/* timeouts */
|
||||||
if ((s = getenv("FTP_TIMEOUT")) != NULL) {
|
if ((s = getenv("FTP_TIMEOUT")) != NULL) {
|
||||||
ftp_timeout = strtol(s, &end, 10);
|
ftp_timeout = strtol(s, &end, 10);
|
||||||
if (*optarg == '\0' || *end != '\0' || ftp_timeout < 0) {
|
if (*s == '\0' || *end != '\0' || ftp_timeout < 0) {
|
||||||
warnx("FTP_TIMEOUT (%s) is not a positive integer",
|
warnx("FTP_TIMEOUT (%s) is not a positive integer", s);
|
||||||
optarg);
|
|
||||||
ftp_timeout = 0;
|
ftp_timeout = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((s = getenv("HTTP_TIMEOUT")) != NULL) {
|
if ((s = getenv("HTTP_TIMEOUT")) != NULL) {
|
||||||
http_timeout = strtol(s, &end, 10);
|
http_timeout = strtol(s, &end, 10);
|
||||||
if (*optarg == '\0' || *end != '\0' || http_timeout < 0) {
|
if (*s == '\0' || *end != '\0' || http_timeout < 0) {
|
||||||
warnx("HTTP_TIMEOUT (%s) is not a positive integer",
|
warnx("HTTP_TIMEOUT (%s) is not a positive integer", s);
|
||||||
optarg);
|
|
||||||
http_timeout = 0;
|
http_timeout = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user