1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 20:39:02 +00:00
Files
nmap/nsock
dmiller e4ce527a38 Avoid null pointer dereference to implement container_of
Using offsetof instead of actually dereferencing a 0 pointer is still
standards compliant (works under gcc -ansi, clang -ansi), and is more in
line with how Linux kernel defines this macro (kernel.h). Can't exactly
lift the kernel implementation because it uses gnu-extension typeof.

Not really a necessary change, but it was causing clang's address
sanitizer to complain.
2013-11-30 01:32:58 +00:00
..
2013-10-23 19:04:10 +00:00