mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
chan_sip/sdp_crypto.c: allow SDP crypto tag to be up to 9 digits
ASTERISK-24887 #close Reported by: Makoto Dei Tested by: tensai Change-Id: I6a96f572adb17f76b3acafe503a01c48eb5dd9bf
This commit is contained in:
@@ -220,7 +220,8 @@ int sdp_crypto_process(struct sdp_crypto *p, const char *attr, struct ast_rtp_in
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (sscanf(tag, "%30d", &p->tag) != 1 || p->tag <= 0 || p->tag > 9) {
|
||||
/* RFC4568 9.1 - tag is 1-9 digits, greater than zero */
|
||||
if (sscanf(tag, "%30d", &p->tag) != 1 || p->tag <= 0 || p->tag > 999999999) {
|
||||
ast_log(LOG_WARNING, "Unacceptable a=crypto tag: %s\n", tag);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user