Nmap Development mailing list archives

Re: [PATCH] Add return in some other files if fopen() fails


From: Fyodor <fyodor () insecure org>
Date: Tue, 22 Aug 2006 01:08:14 -0700

On Mon, Aug 21, 2006 at 09:37:18PM -0500, Kris Katterjohn wrote:
   if (!fp) {
     fatal("Unable to open %s for reading rpc information", filename);
+    return;
   }

These aren't necessary since the fatal() call exits Nmap and so the
return statement wouldn't be reached anyway.

Cheers,
-F

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: