Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openpam/dist/lib/libpam non-null arg.



details:   https://anonhg.NetBSD.org/src/rev/3964b8de55cc
branches:  trunk
changeset: 829754:3964b8de55cc
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 11 00:25:12 2018 +0000

description:
non-null arg.

diffstat:

 external/bsd/openpam/dist/lib/libpam/pam_getenvlist.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r ad97bf49019a -r 3964b8de55cc external/bsd/openpam/dist/lib/libpam/pam_getenvlist.c
--- a/external/bsd/openpam/dist/lib/libpam/pam_getenvlist.c     Sun Feb 11 00:01:12 2018 +0000
+++ b/external/bsd/openpam/dist/lib/libpam/pam_getenvlist.c     Sun Feb 11 00:25:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pam_getenvlist.c,v 1.3 2017/05/06 19:50:10 christos Exp $      */
+/*     $NetBSD: pam_getenvlist.c,v 1.4 2018/02/11 00:25:12 christos Exp $      */
 
 /*-
  * Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@@ -42,7 +42,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pam_getenvlist.c,v 1.3 2017/05/06 19:50:10 christos Exp $");
+__RCSID("$NetBSD: pam_getenvlist.c,v 1.4 2018/02/11 00:25:12 christos Exp $");
 
 #include <stdlib.h>
 #include <string.h>
@@ -65,8 +65,10 @@
        size_t i;
 
        ENTER();
+#ifdef notdef
        if (pamh == NULL)
                RETURNP(NULL);
+#endif
        envlist = malloc(sizeof(*envlist) * ((size_t)pamh->env_count + 1));
        if (envlist == NULL) {
                openpam_log(PAM_LOG_ERROR, "%s",



Home | Main Index | Thread Index | Old Index