[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.
This commit is contained in:
Olga Kornievskaia 2011-04-27 11:37:27 -04:00
parent 880dbf8afc
commit dd6f2c1849

View file

@ -2465,8 +2465,9 @@ NTSTATUS nfs41_CreateVNetRoot(
pVNetRootContext->session = pNetRootContext->auth_sys_session; pVNetRootContext->session = pNetRootContext->auth_sys_session;
DbgP("Using existing AUTH_SYS session 0x%x\n", pVNetRootContext->session); DbgP("Using existing AUTH_SYS session 0x%x\n", pVNetRootContext->session);
goto out; goto out;
} else if (pVNetRootContext->sec_flavor != RPCSEC_AUTH_SYS && } else if ((pVNetRootContext->sec_flavor != RPCSEC_AUTH_SYS ||
pNetRootContext->gss_session) { pNetRoot->Type != NET_ROOT_WILD) &&
pNetRootContext->gss_session) {
pVNetRootContext->session = pNetRootContext->gss_session; pVNetRootContext->session = pNetRootContext->gss_session;
DbgP("Using existing AUTHGSS session 0x%x\n", pVNetRootContext->session); DbgP("Using existing AUTHGSS session 0x%x\n", pVNetRootContext->session);
goto out; goto out;