aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 11:34:26 +0000
committerphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 11:34:26 +0000
commit5bdb7dc6b72e49a4e20c00ad0345baed6169cf99 (patch)
tree93090ae7080a1d8f790d86c6885db405a33d0646 /res
parent01a256ce24483e9d852a2a7ebd24aecdc9003e74 (diff)
Set stream flags to zero upon initialization.
When the XMPP over TLS/SSL connection resets for some reason, it is wrongly believed as being secured, which makes the re-connection process endlessly fail. This was reported by mvanbaak in issue #11644. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95794 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_jabber.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c
index c5e3bbff4..32458ea9d 100644
--- a/res/res_jabber.c
+++ b/res/res_jabber.c
@@ -2256,8 +2256,13 @@ static int aji_client_connect(void *data, ikspak *pak)
*/
static int aji_initialize(struct aji_client *client)
{
+ int connected = IKS_NET_NOCONN;
+
+ /* reset stream flags */
+ client->stream_flags = 0;
+
/* If it's a component, connect to user, otherwise, connect to server */
- int connected = iks_connect_via(client->p, S_OR(client->serverhost, client->jid->server), client->port, client->component ? client->user : client->jid->server);
+ connected = iks_connect_via(client->p, S_OR(client->serverhost, client->jid->server), client->port, client->component ? client->user : client->jid->server);
if (connected == IKS_NET_NOCONN) {
ast_log(LOG_ERROR, "JABBER ERROR: No Connection\n");