mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +00:00
Restore call to post_connect in non-ssl case. Fixes #2149
This commit is contained in:
@@ -1064,12 +1064,17 @@ int ncat_connect(void)
|
|||||||
bye("Failed to set hostname on iod.");
|
bye("Failed to set hostname on iod.");
|
||||||
if (o.ssl)
|
if (o.ssl)
|
||||||
{
|
{
|
||||||
|
/* connect_handler creates stdin_nsi and calls post_connect */
|
||||||
nsock_reconnect_ssl(mypool, cs.sock_nsi, connect_handler, o.conntimeout, NULL, NULL);
|
nsock_reconnect_ssl(mypool, cs.sock_nsi, connect_handler, o.conntimeout, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Create IOD for nsp->stdin */
|
||||||
|
if ((cs.stdin_nsi = nsock_iod_new2(mypool, 0, NULL)) == NULL)
|
||||||
|
bye("Failed to create stdin nsiod.");
|
||||||
|
|
||||||
/* Create IOD for nsp->stdin */
|
post_connect(mypool, cs.sock_nsi);
|
||||||
if ((cs.stdin_nsi = nsock_iod_new2(mypool, 0, NULL)) == NULL)
|
}
|
||||||
bye("Failed to create stdin nsiod.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* connect */
|
/* connect */
|
||||||
|
|||||||
Reference in New Issue
Block a user