Skip to content
Snippets Groups Projects
Commit 8cb40158 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

sdp: fix inverted error message logic

parent b8789053
No related branches found
No related tags found
No related merge requests found
...@@ -344,7 +344,7 @@ Sdp::setPublishedIP(const std::string &ip_addr) ...@@ -344,7 +344,7 @@ Sdp::setPublishedIP(const std::string &ip_addr)
if (localSession_) { if (localSession_) {
localSession_->origin.addr = pj_str((char*) publishedIpAddr_.c_str()); localSession_->origin.addr = pj_str((char*) publishedIpAddr_.c_str());
localSession_->conn->addr = localSession_->origin.addr; localSession_->conn->addr = localSession_->origin.addr;
if (not pjmedia_sdp_validate(localSession_)) if (pjmedia_sdp_validate(localSession_) != PJ_SUCCESS)
ERROR("Could not validate SDP"); ERROR("Could not validate SDP");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment