1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

Prevent empty 'Fetchfile found' message (with -d2) from nmap_fetchfile() when it wasn't actually found.

This commit is contained in:
kris
2007-01-20 23:48:18 +00:00
parent 24e30769e8
commit ba8defb238

View File

@@ -2469,7 +2469,7 @@ int nmap_fetchfile(char *filename_returned, int bufferlen, char *file) {
filename_returned[0] = '\0';
}
if (o.debugging > 1)
if (foundsomething && o.debugging > 1)
error("Fetchfile found %s\n", filename_returned);
return foundsomething;