From 8c2e3a2d0aed5d83dfbcf6d64f1f1db73e4689c0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 1 Sep 2017 11:56:48 -0600 Subject: [PATCH] Networking: Fix a copy/paste error introduced with recent disconnection changes. --- net/tcp/tcp_netpoll.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/tcp/tcp_netpoll.c b/net/tcp/tcp_netpoll.c index 19ca598b610..7715c7225bb 100644 --- a/net/tcp/tcp_netpoll.c +++ b/net/tcp/tcp_netpoll.c @@ -125,7 +125,7 @@ static uint16_t tcp_poll_eventhandler(FAR struct net_driver_s *dev, { /* Mark that the connection has been lost */ - tcp_lost_connection(info->psock, pstate->cb, flags); + tcp_lost_connection(info->psock, info->cb, flags); eventset |= (POLLERR | POLLHUP); } @@ -135,9 +135,9 @@ static uint16_t tcp_poll_eventhandler(FAR struct net_driver_s *dev, { /* Stop further callbacks */ - pstate->cb->flags = 0; - pstate->cb->priv = NULL; - pstate->cb->event = NULL; + info->cb->flags = 0; + info->cb->priv = NULL; + info->cb->event = NULL; info->fds->revents |= eventset; sem_post(info->fds->sem);