Commit b926166d authored by Andy Ross's avatar Andy Ross Committed by Jukka Rissanen
Browse files

net: Set REMOTE_ADDR_SET flag on new TCP connection contexts



Having this unset hits an error check in net_context_send().  Should
consider making this implicit in the destination address being valid
instead...

Change-Id: I52c273d018c3b780837f40678643255da34b6418
Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 17656ecd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1268,6 +1268,8 @@ static enum net_verdict tcp_syn_rcvd(struct net_conn *conn,
			goto reset;
		}

		new_context->flags |= NET_CONTEXT_REMOTE_ADDR_SET;

		memcpy(&new_context->remote, &remote_addr,
		       sizeof(remote_addr));