nmap icon indicating copy to clipboard operation
nmap copied to clipboard

utils_net.cc: Redudant code

Open stasos24 opened this issue 11 months ago • 0 comments

Describe the bug https://github.com/nmap/nmap/blob/fd80921926527e6668d76b5696f0d6c054ca6d29/nping/utils_net.cc#L496-L509

What's the point of defining

struct sockaddr_storage src

then filling with 16 zeros

memset(&src, 0, sizeof(struct sockaddr_in) );

and not using as 4th parameter in:

result=route_dst(dst, &rnfo, NULL, NULL); 

Version info (please complete the following information):

  • master branch

stasos24 avatar Feb 24 '25 09:02 stasos24