Networking: Fix a runaway recursion problem introduced the previous fixe for shutting down dup'ed sockets.

This commit is contained in:
Gregory Nutt
2017-08-29 12:27:58 -06:00
parent d40ee8e79d
commit 0f7a52bc28
11 changed files with 86 additions and 44 deletions
+9
View File
@@ -62,6 +62,15 @@
* Description:
* Performs the low level, common portion of net_dupsd() and net_dupsd2()
*
* Input Parameters:
* psock1 - The existing socket that is being cloned.
* psock2 - A reference to an uninitialized socket structure alloated by
* the caller.
*
* Returned Value:
* Zero (OK) is returned on success; a negated errno value is returned on
* any failure.
*
****************************************************************************/
int net_clone(FAR struct socket *psock1, FAR struct socket *psock2)