Commit ab985946 authored by Sampo Saaristo's avatar Sampo Saaristo

removed a misplaced htonl(), (bug reported by Walter Zimmer)

parent ea00c5c4
......@@ -421,7 +421,7 @@ static int make_conn(unsigned short port, char *ifaddr)
if((ifaddr == NULL) || (strlen(ifaddr) == 0)){
((struct sockaddr_in*)&our_addr)->sin_addr.s_addr = htonl(INADDR_ANY);
} else if((our_ip=inet_addr(ifaddr)) != -1){
((struct sockaddr_in*)&our_addr)->sin_addr.s_addr = htonl(our_ip);
((struct sockaddr_in*)&our_addr)->sin_addr.s_addr = our_ip;
} else {
RUDEBUG1("crude: invalid interface address %s !\n",ifaddr);
return -1;
......
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