astian:
> If a client sends a unix datagram without having bound the socket to an
> address, the recvfrom in the server will return an empty-path,

> smaller-than-normal (16 bytes instead of 106) sockaddr_un on OpenBSD,

FYI, after testing a bit, it seems that other kernels will also return a
structure size smaller than sizeof(struct sockaddr_un) in some cases,
even successful cases.  So maybe I shouldn't consider such occurrence
"abnormal".  This is relevant for the ugly "[unknown address]" special
case in the diff I sent in the bugs@ thread "netcat: fix
report_sock-related bugs".

> which netcat does not check and uses in a subsequent connect(), which is
> invalid:

Reply via email to