Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156493847
D42647.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
532 B
Referenced Files
None
Subscribers
None
D42647.diff
View Options
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -690,7 +690,7 @@
static int
sysctl_net_inet_default_tcp_functions(SYSCTL_HANDLER_ARGS)
{
- int error=ENOENT;
+ int error;
struct tcp_function_set fs;
struct tcp_function_block *blk;
@@ -714,7 +714,7 @@
blk = find_tcp_functions_locked(&fs);
if ((blk == NULL) ||
(blk->tfb_flags & TCP_FUNC_BEING_REMOVED)) {
- error = ENOENT;
+ error = EINVAL;
goto done;
}
V_tcp_func_set_ptr = blk;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 2:36 AM (6 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33070825
Default Alt Text
D42647.diff (532 B)
Attached To
Mode
D42647: tcp: Prefer EINVAL in case function not found
Attached
Detach File
Event Timeline
Log In to Comment