Don't deref a bad ucred pointer, from Dave Carrel <carrel@cisco.com>,

PR .
This commit is contained in:
thorpej 1996-03-05 02:35:39 +00:00
parent 7b294ae934
commit c685105f07

@ -1,4 +1,4 @@
/* $NetBSD: umap_subr.c,v 1.7 1996/02/09 22:41:02 christos Exp $ */
/* $NetBSD: umap_subr.c,v 1.8 1996/03/05 02:35:39 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -400,6 +400,9 @@ umap_mapids(v_mount, credp)
gid_t gid;
u_long (*usermap)[2], (*groupmap)[2];
if (credp == NOCRED)
return;
unentries = MOUNTTOUMAPMOUNT(v_mount)->info_nentries;
usermap = MOUNTTOUMAPMOUNT(v_mount)->info_mapdata;
gnentries = MOUNTTOUMAPMOUNT(v_mount)->info_gnentries;