From dd6f2c18495da2bc16abd2c1a79944c1179095f7 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Wed, 27 Apr 2011 11:37:27 -0400 Subject: [PATCH] [driver] share any session for WILD vnetroot when vnetroot creation of wild comes in it is always for "AUTH_SYS" but if there exists a gss_session than use that. --- sys/nfs41_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index b39aafe..14f419f 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -2465,8 +2465,9 @@ NTSTATUS nfs41_CreateVNetRoot( pVNetRootContext->session = pNetRootContext->auth_sys_session; DbgP("Using existing AUTH_SYS session 0x%x\n", pVNetRootContext->session); goto out; - } else if (pVNetRootContext->sec_flavor != RPCSEC_AUTH_SYS && - pNetRootContext->gss_session) { + } else if ((pVNetRootContext->sec_flavor != RPCSEC_AUTH_SYS || + pNetRoot->Type != NET_ROOT_WILD) && + pNetRootContext->gss_session) { pVNetRootContext->session = pNetRootContext->gss_session; DbgP("Using existing AUTHGSS session 0x%x\n", pVNetRootContext->session); goto out;