[PATCH 1/2] rpc.gssd: Decrement client referece count on error paths

[email protected]
Newsgroups gmane.linux.nfs
Message-ID <[email protected]>
From: Thiago Becker <[email protected]>

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Thiago Becker <[email protected]>
---
 utils/gssd/gssd_proc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index e060bee3..27b6fe4f 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -897,6 +897,9 @@ out_srchost:
 	if (info->srchost)
 		free(info->srchost);
 out_info:
+	pthread_mutex_lock(&clp_lock);
+	clp->refcount--;
+	pthread_mutex_unlock(&clp_lock);
 	free(info);
 	info = NULL;
 	goto out;
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.