X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserverid.c;h=d4061dd45bfb6d7c80f3795da96d5cddb0ea0a4e;hb=48d89bc2868ec49c2ab9aa74efe9ac703eee8f29;hp=89ea6b82a5807e40970eb343d62d7afabf138efa;hpb=10ec50cff8ad9d6a77080821037c1234dc066b47;p=silc.git diff --git a/apps/silcd/serverid.c b/apps/silcd/serverid.c index 89ea6b82..d4061dd4 100644 --- a/apps/silcd/serverid.c +++ b/apps/silcd/serverid.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2000 Pekka Riikonen + Copyright (C) 1997 - 2001 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,17 +17,7 @@ GNU General Public License for more details. */ -/* - * $Id$ - * $Log$ - * Revision 1.2 2001/02/02 13:34:45 priikone - * updates. - * - * Revision 1.1.1.1 2000/06/27 11:36:56 priikone - * Importet from internal CVS/Added Log headers. - * - * - */ +/* $Id$ */ #include "serverincludes.h" @@ -42,10 +32,6 @@ void silc_id_create_server_id(int sock, SilcRng rng, SilcServerID **new_id) SILC_LOG_DEBUG(("Creating new Server ID")); *new_id = silc_calloc(1, sizeof(**new_id)); - if (*new_id == NULL) { - SILC_LOG_ERROR(("Could not allocate new Server ID")); - return; - } /* Get IP address */ len = sizeof(server); @@ -76,10 +62,6 @@ void silc_id_create_client_id(SilcServerID *server_id, SilcRng rng, SILC_LOG_DEBUG(("Creating new Client ID")); *new_id = silc_calloc(1, sizeof(**new_id)); - if (*new_id == NULL) { - SILC_LOG_ERROR(("Could not allocate new Client ID")); - return; - } /* Create hash of the nickanem */ silc_hash_make(md5hash, nickname, strlen(nickname), hash); @@ -100,10 +82,6 @@ void silc_id_create_channel_id(SilcServerID *router_id, SilcRng rng, SILC_LOG_DEBUG(("Creating new Channel ID")); *new_id = silc_calloc(1, sizeof(**new_id)); - if (*new_id == NULL) { - SILC_LOG_ERROR(("Could not allocate new Channel ID")); - return; - } /* Create the ID */ (*new_id)->ip.s_addr = router_id->ip.s_addr;