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:
Jeffrey Hutzelman 2006-06-20 21:00:09 +00:00 committed by Jeffrey Altman
parent efd74baa95
commit 06fa1f9c40

View File

@ -1646,6 +1646,8 @@ h_FindClient_r(struct rx_connection *tcon)
H_UNLOCK;
ObtainWriteLock(&client->lock); /* released at end */
H_LOCK;
} else {
client = NULL;
}
authClass = rx_SecurityClassOf((struct rx_connection *)tcon);