From 1c8dcecf82958b07c2a7404e375c243699f106ec Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Sat, 15 Sep 2001 21:24:18 +0000 Subject: Removed the log message when unable to allocate memory. --- src/buffer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index 5a8f1d1..11c320e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1,4 +1,4 @@ -/* $Id: buffer.c,v 1.10 2001-09-14 19:49:10 rjkaes Exp $ +/* $Id: buffer.c,v 1.11 2001-09-15 21:24:18 rjkaes Exp $ * * The buffer used in each connection is a linked list of lines. As the lines * are read in and written out the buffer expands and contracts. Basically, @@ -195,17 +195,14 @@ ssize_t readbuff(int fd, struct buffer_s *buffptr) return 0; buffer = safemalloc(MAXBUFFSIZE); - if (!buffer) { - log_message(LOG_ERR, "Could not allocate memory in 'readbuff'"); + if (!buffer) return 0; - } bytesin = read(fd, buffer, MAXBUFFSIZE - buffer_size(buffptr) - 1); if (bytesin > 0) { newbuffer = saferealloc(buffer, bytesin); if (!newbuffer) { - log_message(LOG_ERR, "Could not reallocate memory in 'readbuff'"); safefree(buffer); return 0; } -- cgit v1.2.3