summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-15 21:24:18 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-15 21:24:18 +0000
commit1c8dcecf82958b07c2a7404e375c243699f106ec (patch)
tree492630f9bcff370adae54f7bdb3ad070988701a2 /src/buffer.c
parent48ddb827a792b706b4db54b1e7155dc5ec895247 (diff)
downloadtinyproxy-1c8dcecf82958b07c2a7404e375c243699f106ec.tar.gz
tinyproxy-1c8dcecf82958b07c2a7404e375c243699f106ec.zip
Removed the log message when unable to allocate memory.
Diffstat (limited to '')
-rw-r--r--src/buffer.c7
1 files 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;
}