Module: kamailio
Branch: master
Commit: b46d113e941c5429914069be48faa181ba1e805e
URL:
https://github.com/kamailio/kamailio/commit/b46d113e941c5429914069be48faa18…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-29T11:14:56+01:00
core: resolve - use unsigned short int to match dns result types
---
Modified: src/core/resolve.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b46d113e941c5429914069be48faa18…
Patch:
https://github.com/kamailio/kamailio/commit/b46d113e941c5429914069be48faa18…
---
diff --git a/src/core/resolve.c b/src/core/resolve.c
index 7073a9a9e6..0daaa30910 100644
--- a/src/core/resolve.c
+++ b/src/core/resolve.c
@@ -694,8 +694,8 @@ struct rdata* get_record(char* name, int type, int flags)
{
int size;
int skip;
- int qno, answers_no;
- int i, r;
+ unsigned short qno, answers_no, r;
+ int i;
static union dns_query buff;
unsigned char* p;
unsigned char* end;