From 4cb33019c9b50255ba09a174020195ea20701141 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 28 May 2002 23:54:46 +0000 Subject: [PATCH] fixed race condition occuring when a put notify is canceled by a ca clear channel at the same instant that it completes --- src/rsrv/camessage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rsrv/camessage.c b/src/rsrv/camessage.c index 298d2279b..dee194232 100644 --- a/src/rsrv/camessage.c +++ b/src/rsrv/camessage.c @@ -1413,7 +1413,9 @@ void write_notify_reply(void *pArg) */ epicsMutexMustLock(pClient->putNotifyLock); ppnb = (RSRVPUTNOTIFY *)ellGet(&pClient->putNotifyQue); - ppnb->onExtraLaborQueue = FALSE; + if ( ppnb ) { + ppnb->onExtraLaborQueue = FALSE; + } epicsMutexUnlock(pClient->putNotifyLock); /* * break to loop exit