aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-09 17:17:29 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-09 17:17:29 +0000
commite09b7ddb85f8bbb0b6d002a5e8ca91d8eba476c3 (patch)
tree9c275f78246201bdb545c6a76eb296a6c9c9abd9 /channels
parentd41ff717eba49172eb00bc15d72903c1bc0dae5f (diff)
Don't try to convert a 64-bit integer, where only a 32-bit integer is stored.
(closes issue #16194) Reported by: habile git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228979 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/iax2-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index 9a105168c..18a2a0996 100644
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -797,7 +797,7 @@ int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen)
snprintf(tmp, (int)sizeof(tmp), "Expecting capability to be %d bytes long but was %d\n", (int)sizeof(unsigned int), len);
errorf(tmp);
} else if (ies->capability == 0) { /* Don't overwrite capability2, if specified */
- ies->capability = ntohll(get_unaligned_uint32(data + 2));
+ ies->capability = ntohl(get_unaligned_uint32(data + 2));
}
break;
case IAX_IE_CAPABILITY2: