diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-10-10 20:45:40 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-10-10 20:45:40 +0000 |
| commit | f21fc1273675748376a44212c18b7206b75561ab (patch) | |
| tree | 1c050e8395e5443566b0c46ff9b27b14ba4328bc | |
| parent | 6a40eccec3437e3b66131965cdd578dc5aca189a (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_prot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index bc718e44888d..191790b46cc4 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1671,6 +1671,7 @@ crdup(cr) MALLOC(newcr, struct ucred *, sizeof(*cr), M_CRED, M_WAITOK); *newcr = *cr; + bzero(&newcr->cr_mtx, sizeof(newcr->cr_mtx)); mtx_init(&newcr->cr_mtx, "ucred", MTX_DEF); uihold(newcr->cr_uidinfo); uihold(newcr->cr_ruidinfo); |
