a-lunev commented on a change in pull request #5434:
URL: https://github.com/apache/incubator-nuttx/pull/5434#discussion_r801706570



##########
File path: net/ieee802154/ieee802154_sockif.c
##########
@@ -375,15 +375,17 @@ static int ieee802154_bind(FAR struct socket *psock,
 
   /* Bind a PF_IEEE802154 socket to an network device. */
 
-  if (psock->s_type != SOCK_DGRAM)
+  if (ppsock->s_conn == NULL || sock->s_type != SOCK_DGRAM)

Review comment:
       ~ppsock~
   psock
   
   Or (better) move "conn = (FAR struct ieee802154_conn_s *)psock->s_conn;" 
from line 384 to before line 378.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to