From d8fe18c28e040c36edb5c32ffcb3f76830048541 Mon Sep 17 00:00:00 2001 From: fbernon Date: Wed, 13 Jun 2007 18:08:49 +0000 Subject: [PATCH] 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)... --- CHANGELOG | 4 ++++ src/api/api_lib.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c2621d72..94d428fa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -204,6 +204,10 @@ HISTORY ++ 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 * 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 diff --git a/src/api/api_lib.c b/src/api/api_lib.c index 3c967814..26af9d79 100644 --- a/src/api/api_lib.c +++ b/src/api/api_lib.c @@ -322,7 +322,7 @@ netconn_peer(struct netconn *conn, struct ip_addr *addr, u16_t *port) *port = conn->pcb.tcp->remote_port; break; } - return (conn->err = ERR_OK); + return ERR_OK; } err_t @@ -342,7 +342,7 @@ netconn_addr(struct netconn *conn, struct ip_addr **addr, u16_t *port) *port = conn->pcb.tcp->local_port; break; } - return (conn->err = ERR_OK); + return ERR_OK; } err_t