mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix read off by one (spotted by valgrind)
This commit is contained in:
parent
dfc10014b1
commit
7601a1f3fb
@ -928,7 +928,11 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp, unsigned flags
|
||||
}
|
||||
/* check for Novell kludge */
|
||||
if ( !p ) {
|
||||
q = next+1;
|
||||
if ( *next != '\0' ) {
|
||||
q = &next[1];
|
||||
} else {
|
||||
q = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user