summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_xmpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_xmpp.c b/res/res_xmpp.c
index 966432dc0..d9c07255d 100644
--- a/res/res_xmpp.c
+++ b/res/res_xmpp.c
@@ -3772,8 +3772,8 @@ static int xmpp_client_config_post_apply(void *obj, void *arg, int flags)
cfg->client->jid = iks_id_new(cfg->client->stack, cfg->user);
}
- if (!cfg->client->jid) {
- ast_log(LOG_ERROR, "Jabber identity could not be created for client '%s' - client not active\n", cfg->name);
+ if (!cfg->client->jid || ast_strlen_zero(cfg->client->jid->user)) {
+ ast_log(LOG_ERROR, "Jabber identity '%s' could not be created for client '%s' - client not active\n", cfg->user, cfg->name);
return -1;
}