mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
typecase the bitfiddling results since we get a long and we store an int,
they may not be of the size size
This commit is contained in:
parent
c7fe8a7a11
commit
dfb5090e0f
@ -87,10 +87,10 @@ static void next_lookup(struct addr_query *aquery)
|
|||||||
{
|
{
|
||||||
case 'b':
|
case 'b':
|
||||||
addr = ntohl(aquery->addr.s_addr);
|
addr = ntohl(aquery->addr.s_addr);
|
||||||
a1 = addr >> 24;
|
a1 = (int)(addr >> 24) & 0xff;
|
||||||
a2 = (addr >> 16) & 0xff;
|
a2 = (int)(addr >> 16) & 0xff;
|
||||||
a3 = (addr >> 8) & 0xff;
|
a3 = (int)(addr >> 8) & 0xff;
|
||||||
a4 = addr & 0xff;
|
a4 = (int)addr & 0xff;
|
||||||
sprintf(name, "%d.%d.%d.%d.in-addr.arpa", a4, a3, a2, a1);
|
sprintf(name, "%d.%d.%d.%d.in-addr.arpa", a4, a3, a2, a1);
|
||||||
aquery->remaining_lookups = p + 1;
|
aquery->remaining_lookups = p + 1;
|
||||||
ares_query(aquery->channel, name, C_IN, T_PTR, addr_callback,
|
ares_query(aquery->channel, name, C_IN, T_PTR, addr_callback,
|
||||||
|
Loading…
Reference in New Issue
Block a user