From 182ac0c503a2fb00c7ce22c9e61ffe3de4eaa11d Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 9 Nov 2009 17:17:29 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/trunk@228979 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/iax2-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index 9a105168cd..18a2a09964 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: