Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cb2a9f34 authored by Pali Rohár's avatar Pali Rohár

libjingle: Fix expression for port variable

BUG: 348356
parent 22554d99
diff --git a/protocols/jabber/libjingle/talk/examples/login/jingleinfotask.cc b/protocols/jabber/libjingle/talk/examples/login/jingleinfotask.cc
index c8932cd..61eabd5 100644
--- a/protocols/jabber/libjingle/talk/examples/login/jingleinfotask.cc
+++ b/protocols/jabber/libjingle/talk/examples/login/jingleinfotask.cc
@@ -114,7 +114,7 @@ JingleInfoTask::ProcessStart() {
server != NULL; server = server->NextNamed(QN_JINGLE_INFO_SERVER)) {
std::string host = server->Attr(QN_JINGLE_INFO_HOST);
std::string port = server->Attr(QN_JINGLE_INFO_UDP);
- if (host != STR_EMPTY && host != STR_EMPTY) {
+ if (host != STR_EMPTY && port != STR_EMPTY) {
stun_hosts.push_back(talk_base::SocketAddress(host, atoi(port.c_str())));
}
}
......@@ -114,7 +114,7 @@ JingleInfoTask::ProcessStart() {
server != NULL; server = server->NextNamed(QN_JINGLE_INFO_SERVER)) {
std::string host = server->Attr(QN_JINGLE_INFO_HOST);
std::string port = server->Attr(QN_JINGLE_INFO_UDP);
if (host != STR_EMPTY && host != STR_EMPTY) {
if (host != STR_EMPTY && port != STR_EMPTY) {
stun_hosts.push_back(talk_base::SocketAddress(host, atoi(port.c_str())));
}
}
......
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