]> The Tcpdump Group git mirrors - libpcap/commit
Don't rely on SA_LEN to check whether it's passed a null pointer (it
authorguy <guy>
Thu, 11 Mar 2004 23:04:24 +0000 (23:04 +0000)
committerguy <guy>
Thu, 11 Mar 2004 23:04:24 +0000 (23:04 +0000)
commitbd53902d4aaaf16ed9df30bf61ccc125dd636a1b
tree17971a98449f3e2a6ee80b1553b77dd81599a724
parent9876992f2c8d3964140edbe0641fa4218d0cf9d6
Don't rely on SA_LEN to check whether it's passed a null pointer (it
might be supplied by the OS, and the OS might supply a version that
doesn't check); instead, check for null pointers before doing anything
with the address at all.  This also means we don't supply a netmask if
the address is null; that makes sense, as a netmask makes no sense
without an address.
fad-getad.c