svn commit: r291553 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Tue Dec 1 02:48:43 UTC 2015


Author: mjg
Date: Tue Dec  1 02:48:42 2015
New Revision: 291553
URL: https://svnweb.freebsd.org/changeset/base/291553

Log:
  capsicum: plug spurious memset in __cap_rights_init
  
  Reviewed by:	pjd

Modified:
  head/sys/kern/subr_capability.c

Modified: head/sys/kern/subr_capability.c
==============================================================================
--- head/sys/kern/subr_capability.c	Tue Dec  1 02:35:12 2015	(r291552)
+++ head/sys/kern/subr_capability.c	Tue Dec  1 02:48:42 2015	(r291553)
@@ -157,7 +157,6 @@ __cap_rights_init(int version, cap_right
 
 	n = version + 2;
 	assert(n >= CAPARSIZE_MIN && n <= CAPARSIZE_MAX);
-	memset(rights->cr_rights, 0, sizeof(rights->cr_rights[0]) * n);
 	CAP_NONE(rights);
 	va_start(ap, rights);
 	cap_rights_vset(rights, ap);


More information about the svn-src-head mailing list