Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 02:48:42 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291553 - head/sys/kern
Message-ID:  <201512010248.tB12mgac063431@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512010248.tB12mgac063431>