fix bad error handling of getaddrinfo() return.
fix bad error handling of getaddrinfo() return.

BelledonneCommunications/flexisip,gale320/flexisip,BelledonneCommunications/flexisip,biddyweb/flexisip,BelledonneCommunications/flexisip,gale320/flexisip,biddyweb/flexisip,gale320/flexisip,BelledonneCommunications/flexisip,biddyweb/flexisip,gale320/flexisip,biddyweb/flexisip