summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net')
-rw-r--r--nuttx/net/socket/connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/net/socket/connect.c b/nuttx/net/socket/connect.c
index 291a16008..51e4b8426 100644
--- a/nuttx/net/socket/connect.c
+++ b/nuttx/net/socket/connect.c
@@ -51,6 +51,7 @@
#include <nuttx/net/net.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/udp.h>
+#include <nuttx/net/tcp.h>
#include "devif/devif.h"
#include "tcp/tcp.h"
@@ -257,8 +258,8 @@ static uint16_t psock_connect_interrupt(FAR struct net_driver_s *dev,
* determine the correct initial MSS.
*/
- DEBUGASSERT(psock->s_conn);
- psock->s_conn->mss = TCP_INITIAL_MSS(dev);
+ DEBUGASSERT(pstate->tc_conn);
+ pstate->tc_conn->mss = TCP_INITIAL_MSS(dev);
#endif
/* Wake up the waiting thread */