Skip to content

Commit

Permalink
netutils/wiznet: Fix UDP socket multiple connect call case
Browse files Browse the repository at this point in the history
  • Loading branch information
SPRESENSE authored Mar 30, 2022
2 parents e7939fa + 528d848 commit d931ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netutils/wiznet/wiznet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ static int connect_request(int fd, FAR struct wiznet_s *priv,

/* Check if this socket is already connected. */

if (CONNECTED == usock->state)
if ((usock->type == SOCK_STREAM) && (CONNECTED == usock->state))
{
ret = -EISCONN;
goto prepare;
Expand Down

0 comments on commit d931ce7

Please sign in to comment.