mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
r4010: fixed parsing of null attributes in the ldb ldif parser
(This used to be commit b4fd76f78eadd8648ceed508766235e80702aa8f)
This commit is contained in:
parent
5ef59e9a0a
commit
2ed4ff13d5
@ -128,7 +128,11 @@ int ldb_should_b64_encode(const struct ldb_val *val)
|
||||
unsigned int i;
|
||||
uint8_t *p = val->data;
|
||||
|
||||
if (val->length == 0 || p[0] == ' ' || p[0] == ':') {
|
||||
if (val->length == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (p[0] == ' ' || p[0] == ':') {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -377,7 +381,7 @@ static int next_attr(char **s, const char **attr, struct ldb_val *value)
|
||||
|
||||
*attr = *s;
|
||||
|
||||
while (isspace(*p)) {
|
||||
while (*p == ' ' || *p == '\t') {
|
||||
p++;
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ o: UM
|
||||
o: U-M
|
||||
o: U of M
|
||||
description: The University of Michigan at Ann Arbor
|
||||
seeAlso:
|
||||
postaladdress: University of Michigan $ 535 W. William St. $ Ann Arbor, MI 481
|
||||
09 $ US
|
||||
telephonenumber: +1 313 764-1817
|
||||
|
Loading…
x
Reference in New Issue
Block a user