buffer: reduce indentation in read_buffer()
Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
76bd008cf9
commit
ffa3a56ab8
@ -236,8 +236,7 @@ ssize_t read_buffer (int fd, struct buffer_s * buffptr)
|
|||||||
"readbuff: add_to_buffer() error.");
|
"readbuff: add_to_buffer() error.");
|
||||||
bytesin = -1;
|
bytesin = -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (bytesin == 0) {
|
||||||
if (bytesin == 0) {
|
|
||||||
/* connection was closed by client */
|
/* connection was closed by client */
|
||||||
bytesin = -1;
|
bytesin = -1;
|
||||||
} else {
|
} else {
|
||||||
@ -260,7 +259,6 @@ ssize_t read_buffer (int fd, struct buffer_s * buffptr)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
safefree (buffer);
|
safefree (buffer);
|
||||||
return bytesin;
|
return bytesin;
|
||||||
|
Loading…
Reference in New Issue
Block a user