about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 63cd8211..e121d9a6 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -247,6 +247,7 @@ connection_disconnect(void)
     }
 
     free(prof_identifier);
+    prof_identifier = NULL;
 }
 
 void
@@ -681,7 +682,7 @@ static void _compute_identifier(const char *barejid)
     assert(b64 != NULL);
     g_free(hmac);
 
-    //in case of reconnect
+    //in case of reconnect (lost connection)
     free(prof_identifier);
 
     prof_identifier = b64;