mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 21:06:58 +08:00
Networking: socket dup() conditional operation was missing the test for the condition.
This commit is contained in:
@@ -118,7 +118,10 @@ int net_clone(FAR struct socket *psock1, FAR struct socket *psock2)
|
||||
* is lost.
|
||||
*/
|
||||
|
||||
ret = tcp_start_monitor(psock2);
|
||||
if (psock2->s_type == SOCK_STREAM)
|
||||
{
|
||||
ret = tcp_start_monitor(psock2);
|
||||
}
|
||||
#endif
|
||||
|
||||
net_unlock();
|
||||
|
||||
Reference in New Issue
Block a user