FYI, I changed: hints->ai_flags|=AI_ADDRCONFIG; to if(hints) hints->ai_flags|=AI_ADDRCONFIG;
For obvious reasons :-/
FYI, I changed: ai_flags| =AI_ADDRCONFIG; ai_flags| =AI_ADDRCONFIG;
hints->
to
if(hints) hints->
For obvious reasons :-/