summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/auth_subr.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-10-15 20:17:11 +0000
committermillert <millert@openbsd.org>2002-10-15 20:17:11 +0000
commitcf84df88ee2a15bb32e5b6e275af43fa0b51342c (patch)
tree8498625d9f77dce70ff7ee4bc99ae75cc241b202 /lib/libc/gen/auth_subr.c
parentcast NULL varargs sentinel to char * so it is 64 bit on alpha & sparc64 (diff)
downloadwireguard-openbsd-cf84df88ee2a15bb32e5b6e275af43fa0b51342c.tar.xz
wireguard-openbsd-cf84df88ee2a15bb32e5b6e275af43fa0b51342c.zip
Fix typo introduce in last commit
Diffstat (limited to '')
-rw-r--r--lib/libc/gen/auth_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index 6f3769fd9a6..db13471bb61 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.15 2002/10/15 17:47:27 millert Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.16 2002/10/15 20:17:11 millert Exp $ */
/*-
* Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
@@ -458,7 +458,7 @@ auth_setitem(auth_session_t *as, auth_item_t item, char *value)
return (0);
case AUTHV_SERVICE:
- if (value != NULL && value == as->defservice)
+ if (value != NULL && value == as->service)
return (0);
if (value == NULL || strcmp(value, defservice) == 0)
value = defservice;