summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldapd/syntax.c')
-rw-r--r--usr.sbin/ldapd/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/syntax.c b/usr.sbin/ldapd/syntax.c
index bfae26effc9..27f73527248 100644
--- a/usr.sbin/ldapd/syntax.c
+++ b/usr.sbin/ldapd/syntax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syntax.c,v 1.2 2013/11/23 18:02:44 deraadt Exp $ */
+/* $OpenBSD: syntax.c,v 1.3 2015/10/11 03:23:28 guenther Exp $ */
/*
* Copyright (c) 2010 Martin Hedenfalk <martin@bzero.se>
@@ -142,7 +142,7 @@ syntax_is_printable_string(struct schema *schema, char *value, size_t len)
char *p;
for (p = value; len > 0 && *p != '\0'; p++, len--) {
- if (!isalnum(*p) && strchr(special, *p) == NULL)
+ if (!isalnum((unsigned char)*p) && strchr(special, *p) == NULL)
return 0;
}