VSA_Build: Assign (struct sockaddr).sa_len where present

In #3154 we said we would add this to the upcoming VSA_BuildFAP(),
but actually VSA_Build() is the right place.
parent 50970bc9
......@@ -282,6 +282,9 @@ VSA_Build(void *d, const void *s, unsigned sal)
INIT_OBJ(sua, SUCKADDR_MAGIC);
memcpy(&sua->sa, s, l);
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
sua->sa.sa_len = (unsigned char)l;
#endif
return (sua);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment