mirror of https://github.com/getdnsapi/getdns.git
Fixing potential bug for comparision function net_req_query_id_cmp on 64 bits architectures.
This commit is contained in:
parent
4ccfa2a781
commit
4c71d6239f
|
@ -819,10 +819,11 @@ tls_only_is_in_transports_list(getdns_context *context) {
|
||||||
static int
|
static int
|
||||||
net_req_query_id_cmp(const void *id1, const void *id2)
|
net_req_query_id_cmp(const void *id1, const void *id2)
|
||||||
{
|
{
|
||||||
return (intptr_t)id1 - (intptr_t)id2;
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
{
|
* old code was:
|
||||||
|
* return (intptr_t)id1 - (intptr_t)id2;
|
||||||
|
*but this is incorrect on 64 bit architectures.
|
||||||
|
*/
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (id1 != id2)
|
if (id1 != id2)
|
||||||
|
@ -832,7 +833,7 @@ net_req_query_id_cmp(const void *id1, const void *id2)
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
static getdns_tsig_info const tsig_info[] = {
|
static getdns_tsig_info const tsig_info[] = {
|
||||||
{ GETDNS_NO_TSIG, NULL, 0, NULL, 0, 0, 0 }
|
{ GETDNS_NO_TSIG, NULL, 0, NULL, 0, 0, 0 }
|
||||||
|
|
Loading…
Reference in New Issue