From 53274d8b241bdbb1735977eb70dfd744aa6a9a55 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 23 Feb 2008 22:57:26 +0000 Subject: [PATCH] - 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 --- checkin_notes | 7 +++++++ client/scheduler_op.C | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index d88824ba06..d4552f1f74 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/scheduler_op.C b/client/scheduler_op.C index 9059cd8c2d..d0ef704c6f 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -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++;