Skip to content

Commit 147b9a1

Browse files
Ilyes Ben Hamoudamichalvasko
authored andcommitted
doc UPDATE note socket closure in nc_accept_ssh_session()
Update nc_accept_ssh_session() documentation to highlight that the socket is closed if is not set to the SSH session. Signed-off-by: Ilyes Ben Hamouda <[email protected]>
1 parent 4b05cbe commit 147b9a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ struct nc_session *nc_accept_callhome_ssh_sock(int sock, const char *host, uint1
12741274
* @brief Establish SSH transport on a socket.
12751275
*
12761276
* @param[in] session Session structure of the new connection.
1277-
* @param[in] sock Socket of the new connection.
1277+
* @param[in] sock Socket of the new connection, closed if not set to the session.
12781278
* @param[in] timeout Transport operations timeout in msec (not SSH authentication one).
12791279
* @return 1 on success, 0 on timeout, -1 on error.
12801280
*/

0 commit comments

Comments
 (0)