Nmap Development mailing list archives
[PATCH] Fix NmapArpCache to actually grow beyond size 0
From: Daniel Roethlisberger <daniel () roe ch>
Date: Mon, 14 Apr 2008 18:12:40 +0200
I've been looking at the NmapArpCache function in tcpip.cc; as far as I can see the cache was always size 0 and was never able to grow. The attached patch increments ArpCacheSz when adding a tuple to the cache. It also moves the realloc into the conditional block, since there is only a need for reallocation if ArpCapacity is increased. This probably needs some further pre-commit testing because of previously dormant codepaths. -Dan -- Daniel Roethlisberger <daniel () roe ch>
Attachment:
patch-nmap-tcpip.cc.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH] Fix NmapArpCache to actually grow beyond size 0 Daniel Roethlisberger (Apr 14)
- Re: [PATCH] Fix NmapArpCache to actually grow beyond size 0 Fyodor (Apr 14)