mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ldb:attrib_handlers: ldb_comparison_Boolean uses NUMERIC_CMP()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
997b72d79e
commit
f78b964cd8
@ -287,7 +287,7 @@ static int ldb_comparison_Boolean(struct ldb_context *ldb, void *mem_ctx,
|
|||||||
const struct ldb_val *v1, const struct ldb_val *v2)
|
const struct ldb_val *v1, const struct ldb_val *v2)
|
||||||
{
|
{
|
||||||
if (v1->length != v2->length) {
|
if (v1->length != v2->length) {
|
||||||
return v1->length - v2->length;
|
return NUMERIC_CMP(v1->length, v2->length);
|
||||||
}
|
}
|
||||||
return strncasecmp((char *)v1->data, (char *)v2->data, v1->length);
|
return strncasecmp((char *)v1->data, (char *)v2->data, v1->length);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user