Index: utils.c =================================================================== --- utils.c (revision 223910) +++ utils.c (working copy) @@ -207,8 +207,10 @@ hp->hp.h_addrtype = AF_INET; hp->hp.h_addr_list = (void *) hp->buf; hp->hp.h_addr = hp->buf + sizeof(void *); - if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0) + if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0) { + hp->hp.h_length = sizeof(hp->hp.h_addr); return &hp->hp; + } return NULL; }