From 63d92ed0bc0e62b77e974b10f4ec02f004ef33cc Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 29 Mar 2007 13:08:07 +1000 Subject: [PATCH] statd - check for 'priv' when looking for duplicate registrations. From the point of view of the client (lockd), the 'priv' blob is probably the most important key, so make sure to not throw away requests with new 'priv' information. Signed-off-by: Neil Brown --- utils/statd/monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/statd/monitor.c b/utils/statd/monitor.c index 5fcab1d..b0b19da 100644 --- a/utils/statd/monitor.c +++ b/utils/statd/monitor.c @@ -145,7 +145,8 @@ sm_mon_1_svc(struct mon *argp, struct svc_req *rqstp) if (matchhostname(NL_MY_NAME(clnt), my_name) && NL_MY_PROC(clnt) == id->my_proc && NL_MY_PROG(clnt) == id->my_prog && - NL_MY_VERS(clnt) == id->my_vers) { + NL_MY_VERS(clnt) == id->my_vers && + memcmp(NL_PRIV(clnt), argp->priv, SM_PRIV_SIZE) == 0) { /* Hey! We already know you guys! */ dprintf(N_DEBUG, "Duplicate SM_MON request for %s " -- 2.39.2