mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
lwip_fcntl/F_GETFL: no need to check sock->conn != NULL: already checked by get_socket()
This commit is contained in:
parent
5b6c654dd1
commit
ca9f57c09f
@ -3177,7 +3177,7 @@ lwip_fcntl(int s, int cmd, int val)
|
|||||||
but locking should be OK as well since we only *read* some flags */
|
but locking should be OK as well since we only *read* some flags */
|
||||||
SYS_ARCH_PROTECT(lev);
|
SYS_ARCH_PROTECT(lev);
|
||||||
#endif
|
#endif
|
||||||
if (sock->conn && sock->conn->pcb.tcp) {
|
if (sock->conn->pcb.tcp) {
|
||||||
if(!(sock->conn->pcb.tcp->flags & TF_RXCLOSED)) {
|
if(!(sock->conn->pcb.tcp->flags & TF_RXCLOSED)) {
|
||||||
op_mode |= O_RDONLY;
|
op_mode |= O_RDONLY;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user