From b17ed21b16a7e3b77e7bb76e996d775844652f1d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sun, 12 Apr 2026 19:25:53 +0200 Subject: [PATCH] fix: Fix connect with empty resource We recently made the jid validation and creation functions more strict. So this is a sideffect of it. We need to use `jid_fulljid_or_barejid` instead of jidp->fulljid here since it now treats just the barejid not as a fulljid. Ref: 09757da5df1e963ae2acfbcbd60405e316b1dcf6 Ref: f251cc8bb30e4f22c454080e56a8ed91a7ffe45b Ref: fa64b135df9915638ae59a741662127085481eab Signed-off-by: Michael Vetter --- src/xmpp/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/session.c b/src/xmpp/session.c index 1193cc8e..2e70343b 100644 --- a/src/xmpp/session.c +++ b/src/xmpp/session.c @@ -117,7 +117,7 @@ session_connect_with_account(const ProfAccount* const account) auto_char char* jid = NULL; if (account->resource) { auto_jid Jid* jidp = jid_create_from_bare_and_resource(account->jid, account->resource); - jid = strdup(jidp->fulljid); + jid = strdup(jid_fulljid_or_barejid(jidp)); } else { jid = strdup(account->jid); }