1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

nwrap: add an explaining comment for the ai duplicating loop

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Michael Adam 2015-11-12 11:17:21 +01:00
parent 062c97be19
commit ab2f41bed6

View File

@ -5255,6 +5255,11 @@ valid_port:
return rc;
}
/*
* If the socktype was not specified, duplicate
* each ai returned, so that we have variants for
* both UDP and TCP.
*/
if (hints->ai_socktype == 0) {
/* Add second ai */
struct addrinfo *ai_head = ai;