silc_free(id);
goto out;
}
+ hmac = NULL;
server->stat.my_channels++;
server->stat.channels++;
} else {
founder_key = NULL;
}
- if (entry->hmac_name && hmac) {
+ if (entry->hmac_name && (hmac || (!hmac && entry->hmac))) {
silc_free(entry->hmac_name);
- entry->hmac_name = strdup(silc_hmac_get_name(hmac));
+ entry->hmac_name = strdup(silc_hmac_get_name(hmac ? hmac : entry->hmac));
}
/* Get the ban list */
out:
SILC_SERVER_PENDING_EXEC(cmd, SILC_COMMAND_JOIN);
err:
+ if (hmac)
+ silc_hmac_free(hmac);
silc_free(client_id);
silc_server_command_reply_free(cmd);