about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index bb5c58eb..d814d59d 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -211,8 +211,9 @@ _message_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
 
     // handle recipient not found
     if ((from != NULL) && ((type != NULL && (strcmp(type, "cancel") == 0)))) {
-        log_info("Recipient %s not found.", from);
-        handle_recipient_not_found(from);
+        char *cpy = strdup(from);
+        log_info("Recipient %s not found.", cpy);
+        handle_recipient_not_found(cpy);
     }
 
     return 1;