Networking: socket dup() conditional operation was missing the test for the condition.

This commit is contained in:
Gregory Nutt
2017-08-30 10:29:14 -06:00
parent 2e804e3bdb
commit 581db174b2
+4 -1
View File
@@ -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();