Changeset 228 for branches/samba-3.2.x/source/client/client.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/client/client.c
r204 r228 4343 4343 } 4344 4344 4345 static bool finished; 4346 4345 4347 /**************************************************************************** 4346 4348 Make sure we swallow keepalives during idle time. … … 4389 4391 "the connection\n")); 4390 4392 4393 finished = true; 4394 smb_readline_done(); 4391 4395 if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) { 4392 4396 set_smb_read_error(&cli->smb_rw_error, … … 4417 4421 unsigned char garbage[16]; 4418 4422 memset(garbage, 0xf0, sizeof(garbage)); 4419 cli_echo(cli, 1, garbage, sizeof(garbage)); 4423 if (!cli_echo(cli, 1, garbage, sizeof(garbage))) { 4424 DEBUG(0, ("SMBecho failed. Maybe server has closed " 4425 "the connection\n")); 4426 smb_readline_done(); 4427 finished = true; 4428 } 4420 4429 } 4421 4430 } … … 4429 4438 int rc = 0; 4430 4439 4431 while ( 1) {4440 while (!finished) { 4432 4441 TALLOC_CTX *frame = talloc_stackframe(); 4433 4442 char *tok = NULL; … … 4606 4615 fstrcat(server_name, name_type_hex); 4607 4616 4608 zero_ addr(&ss);4617 zero_sockaddr(&ss); 4609 4618 if (have_ip) 4610 4619 ss = dest_ss;
Note:
See TracChangeset
for help on using the changeset viewer.