ITS#10390 ldif_parse_line2 calculates an incorrect length of the attribute type

This commit is contained in:
Nadezhda Ivanova 2025-09-19 16:11:17 +03:00 committed by Quanah Gibson-Mount
parent 138422cbe9
commit 9731103ffb

View file

@ -134,7 +134,7 @@ ldif_parse_line2(
*p = '\0';
}
*s++ = '\0';
type->bv_len = s - type->bv_val - 1;
type->bv_len = p - type->bv_val + 1;
url = 0;
b64 = 0;