summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2006-09-05 12:22:54 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2006-09-05 12:22:54 +0000
commit23ebab416cabd44129327eba5941f1c80dd98e46 (patch)
tree49e3e80d60f2392ad72b764e8ca9d16e84b2f945 /sys/netinet/tcp_subr.c
parent03b33e992822817fc578de9b788693eabc4e8cce (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index cb20deb90489..5563ea4b469f 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -189,9 +189,9 @@ sysctl_maxtcptw(SYSCTL_HANDLER_ARGS)
new = maxtcptw;
error = sysctl_handle_int(oidp, &new, sizeof(int), req);
if (error == 0 && req->newptr) {
- if (new > maxtcptw) {
+ if (new > maxtcptw)
maxtcptw = new;
- } else
+ else
error = EINVAL;
}
return (error);