summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2009-05-07 09:34:02 +0000
committerdchagin <dchagin@FreeBSD.org>2009-05-07 09:34:02 +0000
commit3ce50871ce9326b57e479bd87070622c222b9519 (patch)
tree3f8bac90b825f48c59e54c1eca27f866ce74a5f0 /sys/compat
parent30d072f507287c93d26db17baa06da4c77891c07 (diff)
downloadFreeBSD-src-3ce50871ce9326b57e479bd87070622c222b9519.zip
FreeBSD-src-3ce50871ce9326b57e479bd87070622c222b9519.tar.gz
Return EAFNOSUPPORT instead of EINVAL in case when the incorrect or
unsupported domain argument is specified. Approved by: kib (mentor)
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 91a1a46..5d77f22 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -599,7 +599,7 @@ linux_socket(struct thread *td, struct linux_socket_args *args)
bsd_args.type = args->type;
bsd_args.domain = linux_to_bsd_domain(args->domain);
if (bsd_args.domain == -1)
- return (EINVAL);
+ return (EAFNOSUPPORT);
retval_socket = socket(td, &bsd_args);
if (bsd_args.type == SOCK_RAW
OpenPOWER on IntegriCloud