Index: remoting/jingle_glue/iq_request.cc |
diff --git a/remoting/jingle_glue/iq_request.cc b/remoting/jingle_glue/iq_request.cc |
index f2751a9523ba190f092543011ed2965daeb73ad3..07d2c81d545a84aede8f7e613d4a1b625eacd412 100644 |
--- a/remoting/jingle_glue/iq_request.cc |
+++ b/remoting/jingle_glue/iq_request.cc |
@@ -245,7 +245,7 @@ void JingleInfoRequest::OnResponse(const buzz::XmlElement* stanza) { |
server = server->NextNamed(buzz::QN_JINGLE_INFO_SERVER)) { |
std::string host = server->Attr(buzz::QN_JINGLE_INFO_HOST); |
std::string port_str = server->Attr(buzz::QN_JINGLE_INFO_UDP); |
- if (host != buzz::STR_EMPTY && host != buzz::STR_EMPTY) { |
+ if (host != buzz::STR_EMPTY && port_str != buzz::STR_EMPTY) { |
int port; |
if (!base::StringToInt(port_str, &port)) { |
LOG(WARNING) << "Unable to parse port in stanza" << stanza->Str(); |