mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 20:09:02 +00:00
Return -1 instead of calling pfatal in nmap_raw_socket.
There was one case where we previously didn't fatal, in nse_dnet.cc. Move the fatal calls out of nmap_raw_socket and into the calling scope, with the exception of the one in nse_dnet.cc. The problem was reported by Rob Nicholls. http://seclists.org/nmap-dev/2012/q4/186
This commit is contained in:
@@ -383,6 +383,8 @@ static void initialize_idleproxy(struct idle_proxy_info *proxy, char *proxyName,
|
||||
proxy->ethptr = &proxy->eth;
|
||||
} else {
|
||||
proxy->rawsd = nmap_raw_socket(proxy->host.deviceName());
|
||||
if (proxy->rawsd < 0)
|
||||
pfatal("socket troubles in %s", __func__);
|
||||
unblock_socket(proxy->rawsd);
|
||||
proxy->eth.ethsd = NULL;
|
||||
proxy->ethptr = NULL;
|
||||
|
||||
Reference in New Issue
Block a user