mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Add SRV code to SIP, cleanup ENUM and make IAX2 do the right thing on dials
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
enum.c
5
enum.c
@@ -234,15 +234,12 @@ static int parse_answer(unsigned char *dst, int dstlen, unsigned char *tech, int
|
||||
printf("Looking for %d/%d\n", C_IN, T_NAPTR);
|
||||
#endif
|
||||
for (x=0;x<ntohs(h->ancount);x++) {
|
||||
if ((res = skip_name(answer, len) < 0)) {
|
||||
if ((res = skip_name(answer, len)) < 0) {
|
||||
ast_log(LOG_WARNING, "Failed to skip name :(\n");
|
||||
return -1;
|
||||
}
|
||||
answer += res;
|
||||
len -= res;
|
||||
/* XXX Why am I adding 2 here? XXX */
|
||||
answer += 2;
|
||||
len -= 2;
|
||||
ans = (struct dn_answer *)answer;
|
||||
answer += sizeof(struct dn_answer);
|
||||
len -= sizeof(struct dn_answer);
|
||||
|
Reference in New Issue
Block a user