Handle simple execution

Tested with ping from biboumi
This commit is contained in:
Paul Fariello
2018-03-22 22:21:15 +02:20
parent c9f6a78f57
commit 925cd488c1
6 changed files with 60 additions and 4 deletions

View File

@@ -2045,7 +2045,7 @@ xmpp_stanza_t*
stanza_create_command_exec_iq(xmpp_ctx_t *ctx, const char *const target,
const char *const node)
{
char *id = create_unique_id("command");
char *id = connection_create_stanza_id("cmdexec");
xmpp_stanza_t *iq = xmpp_iq_new(ctx, STANZA_TYPE_SET, id);
free(id);
xmpp_stanza_set_to(iq, target);