mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Avoid passing empty string to nsock_pool_set_device
Nsock checks for NULL, but not for empty string. Rather than making Nsock decide, each app will decide whether to call nsock_pool_set_device, with all currently skipping the call if device is an empty string.
This commit is contained in:
parent
2216e3856e
commit
4ed1ce0eee
5 changed files with 11 additions and 5 deletions
|
|
@ -2817,7 +2817,8 @@ int service_scan(std::vector<Target *> &Targets) {
|
|||
nmap_set_nsock_logger();
|
||||
nmap_adjust_loglevel(o.versionTrace());
|
||||
|
||||
nsock_pool_set_device(nsp, o.device);
|
||||
if (*o.device)
|
||||
nsock_pool_set_device(nsp, o.device);
|
||||
|
||||
if (o.proxy_chain) {
|
||||
nsock_pool_set_proxychain(nsp, o.proxy_chain);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue