From: Pekka Riikonen Date: Fri, 6 Oct 2000 08:10:36 +0000 (+0000) Subject: Bugfix X-Git-Tag: 1.2.beta1~2699 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=b7b2d21a3a1cc7fb79490d745b3478d8867c3d72;p=crypto.git Bugfix --- diff --git a/lib/silcutil/silcutil.c b/lib/silcutil/silcutil.c index 39b9ab1a..f413b1c1 100644 --- a/lib/silcutil/silcutil.c +++ b/lib/silcutil/silcutil.c @@ -21,28 +21,7 @@ * These are general utility functions that doesn't belong to any specific * group of routines. */ -/* - * $Id$ - * $Log$ - * Revision 1.1 2000/09/13 17:45:16 priikone - * Splitted SILC core library. Core library includes now only - * SILC protocol specific stuff. New utility library includes the - * old stuff from core library that is more generic purpose stuff. - * - * Revision 1.4 2000/07/19 07:04:04 priikone - * Minor bug fix in silc_encode_pem - * - * Revision 1.3 2000/07/10 05:34:40 priikone - * Added PEM encoding/decoding functions. - * - * Revision 1.2 2000/07/05 06:06:12 priikone - * Added file saving with specific mode. - * - * Revision 1.1.1.1 2000/06/27 11:36:55 priikone - * Imported from internal CVS/Added Log headers. - * - * - */ +/* $Id$ */ #include "silcincludes.h" @@ -84,8 +63,10 @@ char *silc_file_read(const char *filename, int *return_len) close(fd); buffer[filelen] = EOF; - - *return_len = filelen; + + if (return_len) + *return_len = filelen; + return buffer; }