From 1546f9fbf73e817794d3f5a0caf2681e092d2433 Mon Sep 17 00:00:00 2001 From: paulc Date: Fri, 24 Jul 2009 11:07:23 +0000 Subject: [PATCH] Made XMPP stream terminate if the host address could not be resolved. git-svn-id: http://yate.null.ro/svn/yate/trunk@2768 acf43c95-373e-0410-b603-e72c3f656dc1 --- libs/yjingle/jbstream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/yjingle/jbstream.cpp b/libs/yjingle/jbstream.cpp index b4f2c871..07cbf22d 100644 --- a/libs/yjingle/jbstream.cpp +++ b/libs/yjingle/jbstream.cpp @@ -120,8 +120,8 @@ bool JBSocket::connect(bool& terminated, const char* newAddr, int newPort) m_error = "Resolver failure"; DDebug(m_engine,DebugWarn,"Stream. Failed to resolve '%s' [%p]", m_remoteDomain.safe(),m_stream); + terminated = (m_socket == 0); terminate(); - terminated = m_socket == 0; return false; } DDebug(m_engine,DebugInfo,"Stream. Attempt to connect to '%s:%d' [%p]",