[telepathy-gabble/master] Not needing username or password to register is weird
Will Thompson
will.thompson at collabora.co.uk
Fri Apr 17 03:20:22 PDT 2009
---
src/register.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/register.c b/src/register.c
index 22783c1..aee1d0c 100644
--- a/src/register.c
+++ b/src/register.c
@@ -288,6 +288,14 @@ get_reply_cb (GabbleConnection *conn,
}
}
+ if (!username_required || !password_required)
+ {
+ error = g_error_new (TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
+ "server inexplicably doesn't require username and password");
+
+ goto OUT;
+ }
+
/* craft a reply */
msg = lm_message_new_with_sub_type (NULL, LM_MESSAGE_TYPE_IQ,
LM_MESSAGE_SUB_TYPE_SET);
--
1.5.6.5
More information about the telepathy-commits
mailing list