mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 06:18:38 +00:00
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
This commit is contained in:
@@ -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);
|
snprintf(tmp, (int)sizeof(tmp), "Expecting capability to be %d bytes long but was %d\n", (int)sizeof(unsigned int), len);
|
||||||
errorf(tmp);
|
errorf(tmp);
|
||||||
} else if (ies->capability == 0) { /* Don't overwrite capability2, if specified */
|
} 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;
|
break;
|
||||||
case IAX_IE_CAPABILITY2:
|
case IAX_IE_CAPABILITY2:
|
||||||
|
|||||||
Reference in New Issue
Block a user