summaryrefslogtreecommitdiff
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-09 17:40:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-09 17:40:41 +0000
commitbab9534fb5541fca71352270f88f907846986926 (patch)
treef8998ded20d247483cb0ef5b74d28b4cd0e1b05f /usr.sbin/authpf
parentc811d01487ec19facb9029a19e3e13930197e01f (diff)
minor KNF
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index dcad5997ecb..ca18e61a5fa 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.9 2002/04/08 16:12:49 mpech Exp $ */
+/* $OpenBSD: authpf.c,v 1.10 2002/04/09 17:40:40 deraadt Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -414,7 +414,7 @@ allowed_luser(char *luser)
char *buf, *lbuf;
size_t len;
FILE *f;
- int matched;
+ int matched;
if ((f = fopen(allowfile, "r")) == NULL) {
if (errno == ENOENT) {
@@ -454,15 +454,15 @@ allowed_luser(char *luser)
buf = lbuf;
}
- matched = strcmp(luser, buf) == 0 || strcmp("*", buf) == 0;
+ matched = strcmp(luser, buf) == 0 || strcmp("*", buf) == 0;
if (lbuf != NULL) {
free(lbuf);
lbuf = NULL;
}
- if (matched)
- return(1); /* matched an allowed username */
+ if (matched)
+ return(1); /* matched an allowed username */
}
syslog(LOG_INFO, "Denied access to %s: not listed in %s",
luser, allowfile);