buffer: reduce indentation in read_buffer()

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Michael Adam 2013-11-23 12:04:02 +01:00
parent 76bd008cf9
commit ffa3a56ab8

View File

@ -236,8 +236,7 @@ ssize_t read_buffer (int fd, struct buffer_s * buffptr)
"readbuff: add_to_buffer() error.");
bytesin = -1;
}
} else {
if (bytesin == 0) {
} else if (bytesin == 0) {
/* connection was closed by client */
bytesin = -1;
} else {
@ -260,7 +259,6 @@ ssize_t read_buffer (int fd, struct buffer_s * buffptr)
break;
}
}
}
safefree (buffer);
return bytesin;