From b7556b4e414c5fd1652b1401e38298e7ba71313d Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Mon, 10 Sep 2018 11:30:46 +0200 Subject: [PATCH] Add missing command name for completion log --- src/xmpp/iq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 9204f196..d155a574 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -737,7 +737,7 @@ iq_submit_command_config(ProfConfWin *confwin) xmpp_stanza_t *iq = stanza_create_command_config_submit_iq(ctx, confwin->roomjid, data->command, data->sessionid, confwin->form); const char *id = xmpp_stanza_get_id(iq); - iq_id_handler_add(id, _command_exec_response_handler, NULL, NULL); + iq_id_handler_add(id, _command_exec_response_handler, free, strdup(data->command)); iq_send_stanza(iq); xmpp_stanza_release(iq);