From 2788b2a9c261147769b352e6698d91aecf5da172 Mon Sep 17 00:00:00 2001 From: Noah Meyerhans Date: Sat, 29 Dec 2007 04:39:26 +0000 Subject: [PATCH] apply fixes for OpenAFS Security Advisory 2007-003 --- src/viced/afsfileprocs.c | 2 ++ src/viced/host.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 3972d9df0..0b2e6c15f 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -6082,7 +6082,9 @@ common_GiveUpCallBacks(struct rx_call *acall, struct AFSCBFids *FidArray, (tcon->peer ? tcon->peer->host : 0))); errorCode = GetClient(tcon, &client); if (!errorCode) { + H_LOCK; DeleteAllCallBacks_r(client->host, 1); + H_UNLOCK; PutClient(&client); } } else { diff --git a/src/viced/host.c b/src/viced/host.c index 99d10431c..1cf282301 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1431,6 +1431,7 @@ h_GetHost_r(struct rx_connection *tcon) host->interface ? uuid2 : "")); /* The host in the cache is not the host for this connection */ + h_Lock_r(host); host->hostFlags |= HOSTDELETED; h_Unlock_r(host); if (!held) -- 2.39.5