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:
fbernon
2007-06-13 18:08:49 +00:00
parent 9ee85fb1b6
commit d8fe18c28e
2 changed files with 6 additions and 2 deletions

View File

@@ -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