Commit 8cb40158 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

sdp: fix inverted error message logic

parent b8789053
......@@ -344,7 +344,7 @@ Sdp::setPublishedIP(const std::string &ip_addr)
if (localSession_) {
localSession_->origin.addr = pj_str((char*) publishedIpAddr_.c_str());
localSession_->conn->addr = localSession_->origin.addr;
if (not pjmedia_sdp_validate(localSession_))
if (pjmedia_sdp_validate(localSession_) != PJ_SUCCESS)
ERROR("Could not validate SDP");
}
}
......
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