FIXES 34568
The use of strncmp() results in p->v5_str being treated as matching
prefix instead of as the complete string. This causes "ftpa" to be
considered a match for "ftp".
(cherry picked from commit
f0830f89a11a2fea06a26270a90c7ddf8365a533)
v5_comp1 = decr_part.cname.name_string.val[1];
p = sconv_list;
while (p->v4_str) {
- if (strncmp(p->v5_str, v5_comp0, p->len) == 0) {
+ if (strcmp(p->v5_str, v5_comp0) == 0) {
/*
* It is, so set the new name now, and chop off
* instance's domain name if requested.