In case of SASL failure, print the stanza.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 17 May 2009 20:48:49 +0000 (17:48 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 17 May 2009 20:48:49 +0000 (17:48 -0300)
status.c

index 6af0d44..489c580 100644 (file)
--- a/status.c
+++ b/status.c
@@ -292,6 +292,9 @@ xmpp_other_hook (iksparser *parser, iks *node, char *ns)
     {
       if (!iks_strcmp (iks_name (node), "success"))
         iks_send_header (parser, "jabber-br.org");
     {
       if (!iks_strcmp (iks_name (node), "success"))
         iks_send_header (parser, "jabber-br.org");
+      else if (!iks_strcmp (iks_name (node), "failure"))
+        printf ("failture to authenticate: %s\n",
+                iks_string (iks_stack (node), node));
       return 0;
     }
   return 1;
       return 0;
     }
   return 1;