]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix sign v zero extension error in handling IP address
authorStefan Lucke <stefan@lucke.in-berlin.de>
Tue, 26 Jun 2007 22:02:33 +0000 (23:02 +0100)
committerRichard P. Curnow <rc@rc0.org.uk>
Tue, 26 Jun 2007 22:02:33 +0000 (23:02 +0100)
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:

nameserv.c

index e57a610b3e653b03d319c3b4d411a1079561a3e8..f509dfb3cb4ae3a9fceb08285787af7e6f2d2671 100644 (file)
@@ -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);