Skip to content
Snippets Groups Projects
Commit 7581bb4f authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "srtp: Allow zero as tag value for a sRTP Crypto Suite."

parents 410a5ac0 e76cc51d
No related branches found
No related tags found
No related merge requests found
......@@ -782,8 +782,8 @@ static int res_sdp_crypto_parse_offer(struct ast_rtp_instance *rtp, struct ast_s
return -1;
}
/* RFC4568 9.1 - tag is 1-9 digits, greater than zero */
if (sscanf(tag, "%30d", &tag_from_sdp) != 1 || tag_from_sdp <= 0 || tag_from_sdp > 999999999) {
/* RFC4568 9.1 - tag is 1-9 digits */
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);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment