diff options
author | des <des@FreeBSD.org> | 2003-06-01 12:54:03 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-06-01 12:54:03 +0000 |
commit | 3409f2d5db068fa23d2344776412b86150352336 (patch) | |
tree | 6198c196f6c160a3b6c1800a13a74dbaf48a8cb8 /contrib/openpam/lib/pam_getenv.c | |
parent | 1b2b5956a02e1d56168e372dc96807d70b3ca363 (diff) | |
download | FreeBSD-src-3409f2d5db068fa23d2344776412b86150352336.zip FreeBSD-src-3409f2d5db068fa23d2344776412b86150352336.tar.gz |
Vendor import of OpenPAM Digitalis.
Diffstat (limited to 'contrib/openpam/lib/pam_getenv.c')
-rw-r--r-- | contrib/openpam/lib/pam_getenv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/openpam/lib/pam_getenv.c b/contrib/openpam/lib/pam_getenv.c index 098e1ef..4faafdc 100644 --- a/contrib/openpam/lib/pam_getenv.c +++ b/contrib/openpam/lib/pam_getenv.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2002 Networks Associates Technology, Inc. + * Copyright (c) 2002-2003 Networks Associates Technology, Inc. * All rights reserved. * * This software was developed for the FreeBSD Project by ThinkSec AS and @@ -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/pam_getenv.c#13 $ + * $P4: //depot/projects/openpam/lib/pam_getenv.c#16 $ */ #include <stdlib.h> @@ -60,7 +60,7 @@ pam_getenv(pam_handle_t *pamh, RETURNS(NULL); if (name == NULL || strchr(name, '=') != NULL) RETURNS(NULL); - if ((i = openpam_findenv(pamh, name, strlen(name))) == -1) + if ((i = openpam_findenv(pamh, name, strlen(name))) < 0) RETURNS(NULL); for (str = pamh->env[i]; *str != '\0'; ++str) { if (*str == '=') { |