From 7d254a542cdae1477650267e466f00938d63c2ca Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 6 Dec 2011 22:09:24 +0100 Subject: [PATCH] fix automatically merged fix for bug #33956 (TCP netconns don't need NETCONNTYPE_GROUP without IPv6 support) --- src/api/sockets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index e7d8e1e9..bdc8f8b1 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -336,7 +336,7 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen) err = netconn_accept(sock->conn, &newconn); if (err != ERR_OK) { LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d): netconn_acept failed, err=%d\n", s, err)); - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { + if (netconn_type(sock->conn) != NETCONN_TCP) { sock_set_errno(sock, EOPNOTSUPP); return EOPNOTSUPP; } @@ -541,7 +541,7 @@ lwip_listen(int s, int backlog) if (err != ERR_OK) { LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_listen(%d) failed, err=%d\n", s, err)); - if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) { + if (netconn_type(sock->conn) != NETCONN_TCP) { sock_set_errno(sock, EOPNOTSUPP); return EOPNOTSUPP; }