fix read off by one (spotted by valgrind)

This commit is contained in:
Pierangelo Masarati 2007-05-12 12:38:09 +00:00
parent dfc10014b1
commit 7601a1f3fb

View File

@ -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;
}
}
}