From d06b7b0afe744e7738a8240d2256df6655c48200 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Sep 2013 08:42:31 -0600 Subject: [PATCH] Can't test for UIP_CLOSED bit in TCP flags; UIP_CLOSED is defined to be 0 --- net/net_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/net_monitor.c b/net/net_monitor.c index cf4ffd73f4..12907fa42d 100644 --- a/net/net_monitor.c +++ b/net/net_monitor.c @@ -138,7 +138,7 @@ int net_startmonitor(FAR struct socket *psock) * the monitoring callback.) */ - if ((conn->tcpstateflags & UIP_CLOSED) != 0) + if (conn->tcpstateflags == UIP_CLOSED) { connection_event(conn, UIP_CLOSE); }