PERFORCE change 70081 for review

Dag-Erling Smorgrav des at FreeBSD.org
Tue Feb 1 02:58:30 PST 2005


http://perforce.freebsd.org/chv.cgi?CH=70081

Change 70081 by des at 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;
+	}
 }
 
 /*


More information about the p4-projects mailing list