mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
fix automatically merged fix for bug #33956 (TCP netconns don't need NETCONNTYPE_GROUP without IPv6 support)
This commit is contained in:
parent
422e7963de
commit
7d254a542c
@ -336,7 +336,7 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
|
|||||||
err = netconn_accept(sock->conn, &newconn);
|
err = netconn_accept(sock->conn, &newconn);
|
||||||
if (err != ERR_OK) {
|
if (err != ERR_OK) {
|
||||||
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_accept(%d): netconn_acept failed, err=%d\n", s, err));
|
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);
|
sock_set_errno(sock, EOPNOTSUPP);
|
||||||
return EOPNOTSUPP;
|
return EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
@ -541,7 +541,7 @@ lwip_listen(int s, int backlog)
|
|||||||
|
|
||||||
if (err != ERR_OK) {
|
if (err != ERR_OK) {
|
||||||
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_listen(%d) failed, err=%d\n", s, err));
|
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);
|
sock_set_errno(sock, EOPNOTSUPP);
|
||||||
return EOPNOTSUPP;
|
return EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user