From ba8defb238042f4c76ea959745b9ef907457b987 Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 20 Jan 2007 23:48:18 +0000 Subject: [PATCH] Prevent empty 'Fetchfile found' message (with -d2) from nmap_fetchfile() when it wasn't actually found. --- nmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index 532def3a8..35c1e71f7 100644 --- a/nmap.cc +++ b/nmap.cc @@ -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;