From: Noah Meyerhans Date: Sat, 29 Dec 2007 04:39:26 +0000 (+0000) Subject: apply fixes for OpenAFS Security Advisory 2007-003 X-Git-Tag: debian/1.4.2-6etch1~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2788b2a9c261147769b352e6698d91aecf5da172;p=packages%2Fo%2Fopenafs.git apply fixes for OpenAFS Security Advisory 2007-003 --- 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)