Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Feb 2005 10:58:29 GMT
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 70081 for review
Message-ID:  <200502011058.j11AwT3c040241@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=70081

Change 70081 by des@des.at.des.thinksec.com on 2005/02/01 10:57:49

	Additional healthy paranoia.
	
	Obtained from:	NetBSD

Affected files ...

.. //depot/projects/openpam/lib/openpam_load.c#21 edit

Differences ...

==== //depot/projects/openpam/lib/openpam_load.c#21 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/lib/openpam_load.c#20 $
+ * $P4: //depot/projects/openpam/lib/openpam_load.c#21 $
  */
 
 #include <dlfcn.h>
@@ -173,8 +173,10 @@
 {
 	int i;
 
-	for (i = 0; i < PAM_NUM_FACILITIES; ++i)
+	for (i = 0; i < PAM_NUM_FACILITIES; ++i) {
 		openpam_destroy_chain(policy[i]);
+		policy[i] = NULL;
+	}
 }
 
 /*



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