X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fidlist.c;h=e6f79f3c3bd8838b3b01fcdd89d370ee8c933263;hb=186079e7fb070072090a395379f6b5f754604c2a;hp=6785ab452d0cc815c532ddbc1ebfa5e98cfa1ec5;hpb=ab373ca5b15f012a8528b8e4885ae7a89553dedd;p=silc.git diff --git a/apps/silcd/idlist.c b/apps/silcd/idlist.c index 6785ab45..e6f79f3c 100644 --- a/apps/silcd/idlist.c +++ b/apps/silcd/idlist.c @@ -458,7 +458,7 @@ silc_idlist_find_client_by_hash(SilcIDList id_list, char *nickname, while (id_cache) { client = (SilcClientEntry)id_cache->context; - if (client && !SILC_ID_COMPARE_HASH(client->id, hash)) + if (client && SILC_ID_COMPARE_HASH(client->id, hash)) break; id_cache = NULL; @@ -532,7 +532,7 @@ silc_idlist_replace_client_id(SilcIDList id_list, SilcClientID *old_id, /* If the old ID Cache data was the hash value of the old Client ID replace it with the hash of new Client ID */ - if (id_cache->data && !SILC_ID_COMPARE_HASH(old_id, id_cache->data)) { + if (id_cache->data && SILC_ID_COMPARE_HASH(old_id, id_cache->data)) { silc_free(id_cache->data); id_cache->data = silc_calloc(sizeof(new_id->hash), sizeof(unsigned char)); memcpy(id_cache->data, new_id->hash, sizeof(new_id->hash));