]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10390 ldif_parse_line2 calculates an incorrect length of the attribute type
authorNadezhda Ivanova <nivanova@symas.com>
Fri, 19 Sep 2025 13:11:17 +0000 (16:11 +0300)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 4 Nov 2025 16:12:47 +0000 (16:12 +0000)
libraries/libldap/ldif.c

index 1dc48b491b279ad8edbc48fbec6387f28b59687d..809c579ad52904753cff6fae0309c2d81e011f4a 100644 (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;