- client: fix crashing bug in SCHEDULER_OP::backoff().

Was using cur_proj (which is potentially NULL) instead of p

svn path=/trunk/boinc/; revision=14782
This commit is contained in:
David Anderson 2008-02-23 22:57:26 +00:00
parent e5f1f2f9cb
commit 53274d8b24
2 changed files with 9 additions and 2 deletions

View File

@ -1582,3 +1582,10 @@ David Feb 22 2008
(should do same for request and reply at some point)
sched/sched_*
David Feb 23 2008
- client: fix crashing bug in SCHEDULER_OP::backoff().
Was using cur_proj (which is potentially NULL) instead of p
client/
scheduler_op.C

View File

@ -234,7 +234,7 @@ int SCHEDULER_OP::start_rpc(PROJECT* p) {
"Scheduler request failed: %s", boincerror(retval)
);
}
backoff(cur_proj, "scheduler request failed");
backoff(p, "scheduler request failed");
return retval;
}
retval = http_ops->insert(&http_op);
@ -244,7 +244,7 @@ int SCHEDULER_OP::start_rpc(PROJECT* p) {
"Scheduler request failed: %s", boincerror(retval)
);
}
backoff(cur_proj, "scheduler request failed");
backoff(p, "scheduler request failed");
return retval;
}
p->rpc_seqno++;