mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-08 00:23:39 +08:00
api_lib.c: change return expression in netconn_addr and netconn_peer, because conn->err was reset to ERR_OK without any reasons (and error was lost)...
This commit is contained in:
@@ -204,6 +204,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-06-13 Frédéric Bernon, Simon Goldschmidt
|
||||||
|
* api_lib.c: change return expression in netconn_addr and netconn_peer, because
|
||||||
|
conn->err was reset to ERR_OK without any reasons (and error was lost)...
|
||||||
|
|
||||||
2007-06-13 Frédéric Bernon, Matthias Weisser
|
2007-06-13 Frédéric Bernon, Matthias Weisser
|
||||||
* opt.h, mem.h, mem.c, memp.c, pbuf.c, ip_frag.c, vj.c: Fix bug #20162. Rename
|
* opt.h, mem.h, mem.c, memp.c, pbuf.c, ip_frag.c, vj.c: Fix bug #20162. Rename
|
||||||
MEM_ALIGN in LWIP_MEM_ALIGN and MEM_ALIGN_SIZE in LWIP_MEM_ALIGN_SIZE to avoid
|
MEM_ALIGN in LWIP_MEM_ALIGN and MEM_ALIGN_SIZE in LWIP_MEM_ALIGN_SIZE to avoid
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ netconn_peer(struct netconn *conn, struct ip_addr *addr, u16_t *port)
|
|||||||
*port = conn->pcb.tcp->remote_port;
|
*port = conn->pcb.tcp->remote_port;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return (conn->err = ERR_OK);
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
err_t
|
err_t
|
||||||
@@ -342,7 +342,7 @@ netconn_addr(struct netconn *conn, struct ip_addr **addr, u16_t *port)
|
|||||||
*port = conn->pcb.tcp->local_port;
|
*port = conn->pcb.tcp->local_port;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return (conn->err = ERR_OK);
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
err_t
|
err_t
|
||||||
|
|||||||
Reference in New Issue
Block a user