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:
This commit is contained in:
parent
084efe606f
commit
215d988286
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue