From: Stefan Lucke Date: Tue, 26 Jun 2007 22:02:33 +0000 (+0100) Subject: Fix sign v zero extension error in handling IP address X-Git-Tag: 1.23-pre1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=215d9882868a670ca53553bf8bef6778be5d71cf;p=thirdparty%2Fchrony.git Fix sign v zero extension error in handling IP address I switch to the git version of chrony. Accidently this version did not talk to by lokal server at 192.168.192.4. Instead it continuosly tried 255.255.192.4 :-( . Tracked that down to "char", "unsigned char" issue in nameserv.c: --- diff --git a/nameserv.c b/nameserv.c index e57a610b..f509dfb3 100644 --- a/nameserv.c +++ b/nameserv.c @@ -39,7 +39,7 @@ unsigned long DNS_Name2IPAddress(const char *name) { struct hostent *host; - char *address0; + unsigned char *address0; unsigned long result; host = gethostbyname(name);