Commit 52503e0f authored by Pekka Pessi's avatar Pekka Pessi

soa: fix problem in processing non-NUL terminated SDP

parent fefec622
......@@ -2059,7 +2059,9 @@ int soa_set_sdp(soa_session_t *ss,
else if (sdp_str) {
if (str_len == -1)
str_len = strlen(sdp_str);
new_version = !su_strnmatch(sdp_str, ssd->ssd_unparsed, str_len + 1);
new_version =
!su_strnmatch(sdp_str, ssd->ssd_unparsed, str_len)
|| ssd->ssd_unparsed[str_len] != '\0';
}
else
return su_seterrno(EINVAL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment