summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/ava.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/slapd/ava.c')
-rw-r--r--ldap/servers/slapd/ava.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/ava.c b/ldap/servers/slapd/ava.c
index ea11033f..1905e4cb 100644
--- a/ldap/servers/slapd/ava.c
+++ b/ldap/servers/slapd/ava.c
@@ -113,7 +113,7 @@ static void
strcpy_special_undo( char *d, const char *s )
{
const char *end = s + strlen(s);
- for ( ; *s; s++ )
+ for ( ; s < end && *s; s++ )
{
switch ( *s )
{