mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-04 20:08:57 +00:00
Minor Fix (ident)
This commit is contained in:
parent
cb3d2b327a
commit
da7b5135de
|
@ -442,11 +442,12 @@ lwip_recvfrom(int s, void *mem, int len, unsigned int flags,
|
|||
|
||||
if (netconn_type(sock->conn) == NETCONN_TCP) {
|
||||
len -= copylen;
|
||||
if ( (len <= 0) || (buf->p->flags & PBUF_FLAG_PUSH) || !sock->rcvevent)
|
||||
if ( (len <= 0) || (buf->p->flags & PBUF_FLAG_PUSH) || !sock->rcvevent) {
|
||||
done = 1;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
done = 1;
|
||||
}
|
||||
|
||||
/* If we don't peek the incoming message... */
|
||||
if ((flags & MSG_PEEK)==0) {
|
||||
|
@ -463,8 +464,9 @@ lwip_recvfrom(int s, void *mem, int len, unsigned int flags,
|
|||
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom: deleting netbuf=%p\n", buf));
|
||||
netbuf_delete(buf);
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
done = 1;
|
||||
}
|
||||
} /* while ( !done ) */
|
||||
|
||||
/* Check to see from where the data was.*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user