Commit 7601a1f3 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix read off by one (spotted by valgrind)

parent dfc10014
......@@ -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;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment