mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
NSE committed
This commit is contained in:
@@ -121,7 +121,7 @@ static int nmap_services_init() {
|
||||
struct service_list *current, *previous;
|
||||
int res;
|
||||
|
||||
if (nmap_fetchfile(filename, sizeof(filename), "nmap-services") == -1) {
|
||||
if (nmap_fetchfile(filename, sizeof(filename), "nmap-services") != 1) {
|
||||
#ifndef WIN32
|
||||
error("Unable to find nmap-services! Resorting to /etc/services");
|
||||
strcpy(filename, "/etc/services");
|
||||
|
||||
Reference in New Issue
Block a user