X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserverid.c;h=fdb0cd9df21dfe85f629b58c5be3e437f72f2a49;hb=cb85ff7f5a90c9ec9720313c23d0cf9f530399d6;hp=f26630edb30a68b69cf181acef9697530d605246;hpb=b77d1740d377d34c80b5e9206d72d5a165c1e5c7;p=silc.git diff --git a/apps/silcd/serverid.c b/apps/silcd/serverid.c index f26630ed..fdb0cd9d 100644 --- a/apps/silcd/serverid.c +++ b/apps/silcd/serverid.c @@ -1,16 +1,16 @@ /* - id.c + serverid.c - Author: Pekka Riikonen + Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2002 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -25,7 +25,7 @@ /* Creates a Server ID. Newly created Server ID is returned to the new_id argument. */ -void silc_id_create_server_id(const char *ip, SilcUInt16 port, SilcRng rng, +void silc_id_create_server_id(const char *ip, SilcUInt16 port, SilcRng rng, SilcServerID **new_id) { SILC_LOG_DEBUG(("Creating new Server ID")); @@ -34,7 +34,7 @@ void silc_id_create_server_id(const char *ip, SilcUInt16 port, SilcRng rng, /* Create the ID */ - if (!silc_net_addr2bin(ip, (*new_id)->ip.data, + if (!silc_net_addr2bin(ip, (*new_id)->ip.data, sizeof((*new_id)->ip.data))) { silc_free(*new_id); *new_id = NULL;