Merge "srtp: Allow zero as tag value for a sRTP Crypto Suite."
This commit is contained in:
commit
7581bb4f5f
1 changed files with 2 additions and 2 deletions
|
@ -782,8 +782,8 @@ static int res_sdp_crypto_parse_offer(struct ast_rtp_instance *rtp, struct ast_s
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* RFC4568 9.1 - tag is 1-9 digits, greater than zero */
|
/* RFC4568 9.1 - tag is 1-9 digits */
|
||||||
if (sscanf(tag, "%30d", &tag_from_sdp) != 1 || tag_from_sdp <= 0 || tag_from_sdp > 999999999) {
|
if (sscanf(tag, "%30d", &tag_from_sdp) != 1 || tag_from_sdp < 0 || tag_from_sdp > 999999999) {
|
||||||
ast_log(LOG_WARNING, "Unacceptable a=crypto tag: %s\n", tag);
|
ast_log(LOG_WARNING, "Unacceptable a=crypto tag: %s\n", tag);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue