mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Remove a pointless while loop
This commit is contained in:
parent
c94c04e3e6
commit
f591bd68ea
@ -1123,11 +1123,8 @@ ssize_t read_smb_length_return_keepalive(int fd,
|
||||
{
|
||||
ssize_t len=0;
|
||||
int msg_type;
|
||||
bool ok = false;
|
||||
|
||||
while (!ok) {
|
||||
ok = (read_socket_with_timeout(fd,inbuf,4,4,timeout,pre) == 4);
|
||||
if (!ok) {
|
||||
if (read_socket_with_timeout(fd, inbuf, 4, 4, timeout, pre) != 4) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1137,7 +1134,6 @@ ssize_t read_smb_length_return_keepalive(int fd,
|
||||
if (msg_type == SMBkeepalive) {
|
||||
DEBUG(5,("Got keepalive packet\n"));
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(10,("got smb length of %lu\n",(unsigned long)len));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user