From 0e97c01d6dc278f4e46d5fbf55f389bbfb2f91d9 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 1 Jan 2002 16:17:55 +0000 Subject: [PATCH] o Remove premature use of nmp->nm_cred, it hasn't been initialized yet. --- sys/nfsclient/nfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 123e82966886..a297bcccdf4a 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -421,7 +421,7 @@ nfs_mountroot(struct mount *mp, struct thread *td) * talk to the server. */ error = socreate(nd->myif.ifra_addr.sa_family, &so, SOCK_DGRAM, 0, - nmp->nm_cred, td); + td->td_proc->p_ucred;, td); if (error) panic("nfs_mountroot: socreate(%04x): %d", nd->myif.ifra_addr.sa_family, error);