> > + return log_sockaddr(addr2sa(addr, 0, &len), len); > > Perhaps I haven't yet had enough coffee this year, but I'm unsure > whether it is actually guaranteed that addr2sa() is called before the > second len in this line is passed to log_sockaddr().
Answering my own question: C99 and C11 6.5.2.2.12 require that all side effects must be completed before log_sockaddr() is called. As addr2sa() changes the second len as a side effect, this should be fine. ok tb
