mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
viced-findclient-do-not-return-wrong-client-20060620
In h_FindClient_r it was possible for the wrong client to be returned and worse for it to be returned without the reference count being incremented.
This commit is contained in:
parent
efd74baa95
commit
06fa1f9c40
@ -1646,6 +1646,8 @@ h_FindClient_r(struct rx_connection *tcon)
|
|||||||
H_UNLOCK;
|
H_UNLOCK;
|
||||||
ObtainWriteLock(&client->lock); /* released at end */
|
ObtainWriteLock(&client->lock); /* released at end */
|
||||||
H_LOCK;
|
H_LOCK;
|
||||||
|
} else {
|
||||||
|
client = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
authClass = rx_SecurityClassOf((struct rx_connection *)tcon);
|
authClass = rx_SecurityClassOf((struct rx_connection *)tcon);
|
||||||
|
Loading…
Reference in New Issue
Block a user