about summary refs log tree commit diff stats
path: root/src/xmpp/stanza.c
diff options
context:
space:
mode:
authorswirl <roachh@protonmail.com>2021-07-05 17:44:00 -0400
committerswirl <roachh@protonmail.com>2021-08-17 14:09:48 -0400
commit4d3f26154e2bcb9b975eb5236982cf8f19d9bed1 (patch)
tree962489ba8ea05e898246b21cc1c54e8c17812e9e /src/xmpp/stanza.c
parent2cc354b6aef2f54b3f4dacc81f257c0625d5c734 (diff)
downloadprofani-tty-4d3f26154e2bcb9b975eb5236982cf8f19d9bed1.tar.gz
hacky fix(?) for register
very bad and spaghetti will fix later
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r--src/xmpp/stanza.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index 4849f3e1..22835d1f 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -2755,7 +2755,8 @@ xmpp_stanza_t*
 stanza_register_new_account(xmpp_ctx_t* ctx, const char* const user, const char* const password)
 {
     char* id = connection_create_stanza_id();
-    xmpp_stanza_t* iq = xmpp_iq_new(ctx, STANZA_TYPE_SET, id);
+    //char* id = "reg2";
+    xmpp_stanza_t* iq = xmpp_iq_new(ctx, STANZA_TYPE_SET, strdup(id));
     free(id);
 
     xmpp_stanza_t* register_new_account = xmpp_stanza_new(ctx);