diff options
author | Paul Fariello <paul@fariello.eu> | 2019-07-30 07:19:18 +0320 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-07-30 10:22:57 +0200 |
commit | 5e61bc08dd677e6d69158d3fd2eaccabc104771f (patch) | |
tree | 7d637670e130be923d87a7dd65cc8821f83c9187 | |
parent | 259221608485bbe1fc4e6d5efe28aa82c0436c58 (diff) | |
download | profani-tty-5e61bc08dd677e6d69158d3fd2eaccabc104771f.tar.gz |
Fix command form submit
Command form userdata were freed by iq_id_handler. We should now free the command ourself.
-rw-r--r-- | src/xmpp/iq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 4ffa55d8..4b75436a 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -1235,7 +1235,7 @@ _command_exec_response_handler(xmpp_stanza_t *const stanza, void *const userdata } else { data->sessionid = strdup(sessionid); } - data->command = command; + data->command = strdup(command); ProfConfWin *confwin = (ProfConfWin*)wins_new_config(from, form, iq_submit_command_config, iq_cancel_command_config, data); confwin_handle_configuration(confwin, form); } else if (g_strcmp0(status, "canceled") == 0) { |