diff options
author | Geoff Thorpe <geoff@openssl.org> | 2002-01-10 06:03:12 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2002-01-10 06:03:12 +0000 |
commit | fd69886aeda473c97af2b9ae9c52123c45783ded (patch) | |
tree | 6cf2578eacf8909af66250eacb4aeff2edaf3a8d /demos/tunala/buffer.c | |
parent | fd795679bbcc56980663610c8d9a62ca300b424f (diff) | |
download | openssl-fd69886aeda473c97af2b9ae9c52123c45783ded.tar.gz |
- Network errors could pollute the buffers because -1 isn't noticed in an
"unsigned int".
- Remove redundant processing with machine->ssl is NULL.
- Remove compiler warnings about uninitialised 'ctx' (it's not used
uninitialised, but gcc can't see that).
Diffstat (limited to 'demos/tunala/buffer.c')
-rw-r--r-- | demos/tunala/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/tunala/buffer.c b/demos/tunala/buffer.c index dc26c88601..c5cd004209 100644 --- a/demos/tunala/buffer.c +++ b/demos/tunala/buffer.c @@ -87,7 +87,7 @@ static unsigned int buffer_takedata(buffer_t *buf, unsigned char *ptr, int buffer_from_fd(buffer_t *buf, int fd) { - unsigned int toread = buffer_unused(buf); + int toread = buffer_unused(buf); if(toread == 0) /* Shouldn't be called in this case! */ abort(); @@ -101,7 +101,7 @@ int buffer_from_fd(buffer_t *buf, int fd) int buffer_to_fd(buffer_t *buf, int fd) { - unsigned int towrite = buffer_used(buf); + int towrite = buffer_used(buf); if(towrite == 0) /* Shouldn't be called in this case! */ abort(); |