diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-01-22 11:20:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 11:20:18 +0100 |
commit | 91bd4c74379e8f703c2818fd78a7a55d7b2d9001 (patch) | |
tree | 54dcff43fbf867f5f558f9139a284561291e9cdd /src/xmpp/stanza.c | |
parent | 1cb045e30ca23c37ebf24718542010f3a57bad0c (diff) | |
parent | ac2d1c07fa26bb2d2c0a9428905f2de736342f2e (diff) | |
download | profani-tty-91bd4c74379e8f703c2818fd78a7a55d7b2d9001.tar.gz |
Merge pull request #1029 from paulfariello/fix-optionnal-sessionid-xep-0050
Fix optional sessionid in xep 0050
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r-- | src/xmpp/stanza.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index c44433ef..26192b29 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -2078,7 +2078,9 @@ stanza_create_command_config_submit_iq(xmpp_ctx_t *ctx, const char *const room, xmpp_stanza_set_name(command, STANZA_NAME_COMMAND); xmpp_stanza_set_ns(command, STANZA_NS_COMMAND); xmpp_stanza_set_attribute(command, "node", node); - xmpp_stanza_set_attribute(command, "sessionid", sessionid); + if (sessionid != NULL) { + xmpp_stanza_set_attribute(command, "sessionid", sessionid); + } xmpp_stanza_t *x = form_create_submission(form); xmpp_stanza_add_child(command, x); |