Date: Mon, 16 Jan 2006 00:12:15 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 89767 for review Message-ID: <200601160012.k0G0CFno031894@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=89767 Change 89767 by rwatson@rwatson_peppercorn on 2006/01/16 00:12:13 Since we have a (up) pointer, use it. Found by: Coverity Prevent (tm) Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_user.c#10 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_user.c#10 (text+ko) ==== @@ -214,7 +214,8 @@ /* Get user mask. */ if ((up = getauusernam_r(&u, username)) != NULL) { - if (-1 == getfauditflags(&u.au_always, &u.au_never, mask_p)) + if (-1 == getfauditflags(&up->au_always, &up->au_never, + mask_p)) return (-1); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601160012.k0G0CFno031894>