updates.
[silc.git] / apps / silcd / command_reply.c
index 9b18d11afb11e7eccc6b295c8d8384b705a91319..c718c3baebde33a3a8f4d7dc18d2b03208118efb 100644 (file)
@@ -813,6 +813,7 @@ SILC_SERVER_CMD_REPLY_FUNC(join)
       silc_free(id);
       goto out;
     }
+    server->stat.my_channels++;
   } else {
     /* The entry exists. */
     if (cache->id)
@@ -833,7 +834,7 @@ SILC_SERVER_CMD_REPLY_FUNC(join)
 
   if (entry->hmac_name && hmac) {
     silc_free(entry->hmac_name);
-    entry->hmac_name = strdup(hmac->hmac->name);
+    entry->hmac_name = strdup(silc_hmac_get_name(hmac));
   }
 
   /* Get the ban list */