diff options
author | John Levon <john.levon@joyent.com> | 2019-10-22 12:02:53 +0100 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-10-23 17:49:08 +0100 |
commit | 3ef756924267e272e432add760e4dc8597faef89 (patch) | |
tree | 126ab5ad2fb748b56341855418a6a33cee1a683e /usr/src/uts/common/inet/tcp/tcp.c | |
parent | 125965389c591835d37b560971900f263cc8f988 (diff) | |
download | illumos-joyent-3ef756924267e272e432add760e4dc8597faef89.tar.gz |
11849 listen of IPv6 address fails with EAFNOSUPPORT
Reviewed by: Garrett D'Amore <gdamore@racktopsystems.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src/uts/common/inet/tcp/tcp.c')
-rw-r--r-- | usr/src/uts/common/inet/tcp/tcp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/common/inet/tcp/tcp.c b/usr/src/uts/common/inet/tcp/tcp.c index bfa08ada8c..cf575fb944 100644 --- a/usr/src/uts/common/inet/tcp/tcp.c +++ b/usr/src/uts/common/inet/tcp/tcp.c @@ -21,7 +21,7 @@ /* * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2011, Joyent Inc. All rights reserved. + * Copyright 2019 Joyent, Inc. * Copyright (c) 2011 Nexenta Systems, Inc. All rights reserved. * Copyright (c) 2013, 2017 by Delphix. All rights reserved. * Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved. @@ -4334,11 +4334,11 @@ tcp_do_listen(conn_t *connp, struct sockaddr *sa, socklen_t len, } return (-TOUTSTATE); } else { - if (sa == NULL) { - sin6_t addr; - sin_t *sin; - sin6_t *sin6; + sin6_t addr; + sin_t *sin; + sin6_t *sin6; + if (sa == NULL) { ASSERT(IPCL_IS_NONSTR(connp)); /* Do an implicit bind: Request for a generic port. */ if (connp->conn_family == AF_INET) { |