buffer: reduce indentation in read_buffer()
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit ffa3a56ab8
)
This commit is contained in:
parent
3cb25a7857
commit
e16844bd3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user