net/udp: Fix a backward conditional test added in commit 434da18cd7.

This commit is contained in:
Gregory Nutt 2018-04-27 06:35:51 -06:00
parent 745a498ce2
commit 119ce8730f

View File

@ -704,7 +704,7 @@ ssize_t psock_udp_sendto(FAR struct socket *psock, FAR const void *buf,
/* Initialize the write buffer */
/* Check if the socket is connected */
if (!_SS_ISCONNECTED(psock->s_flags))
if (_SS_ISCONNECTED(psock->s_flags))
{
/* Yes.. get the connection address from the connection structure */