summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/groupaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/groupaccess.c')
-rw-r--r--crypto/openssh/groupaccess.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/crypto/openssh/groupaccess.c b/crypto/openssh/groupaccess.c
index 1eab10b..2518c84 100644
--- a/crypto/openssh/groupaccess.c
+++ b/crypto/openssh/groupaccess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: groupaccess.c,v 1.14 2013/05/17 00:13:13 djm Exp $ */
+/* $OpenBSD: groupaccess.c,v 1.16 2015/05/04 06:10:48 djm Exp $ */
/*
* Copyright (c) 2001 Kevin Steves. All rights reserved.
*
@@ -26,13 +26,13 @@
#include "includes.h"
#include <sys/types.h>
-#include <sys/param.h>
#include <grp.h>
#include <unistd.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include "xmalloc.h"
#include "groupaccess.h"
@@ -97,11 +97,9 @@ int
ga_match_pattern_list(const char *group_pattern)
{
int i, found = 0;
- size_t len = strlen(group_pattern);
for (i = 0; i < ngroups; i++) {
- switch (match_pattern_list(groups_byname[i],
- group_pattern, len, 0)) {
+ switch (match_pattern_list(groups_byname[i], group_pattern, 0)) {
case -1:
return 0; /* Negated match wins */
case 0:
OpenPOWER on IntegriCloud