1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r23143: error found by valgrind

(This used to be commit 268a26131ee43a673e7b79a359b2575dcef554d5)
This commit is contained in:
Andrew Tridgell 2007-05-25 12:35:03 +00:00 committed by Gerald (Jerry) Carter
parent a085d682e6
commit d142f4b0f2
2 changed files with 10 additions and 8 deletions

View File

@ -274,15 +274,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te,
fflush(stdout);
event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);
if (!state[i].tree) {
return;
}
/* send an echo on each interface to ensure it stays alive - this helps
with IP takeover */
for (i=0;i<nprocs;i++) {
struct smb_echo p;
struct smbcli_request *req;
if (!state[i].tree) {
continue;
}
p.in.repeat_count = 1;
p.in.size = 0;
p.in.data = NULL;

View File

@ -314,15 +314,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te,
fflush(stdout);
event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);
if (!state[i].tree) {
return;
}
/* send an echo on each interface to ensure it stays alive - this helps
with IP takeover */
for (i=0;i<nprocs;i++) {
struct smb_echo p;
struct smbcli_request *req;
if (!state[i].tree) {
continue;
}
p.in.repeat_count = 1;
p.in.size = 0;
p.in.data = NULL;