diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2023-09-21 12:55:53 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2023-09-26 23:45:36 +0000 |
| commit | 793b86f4cbfa763002246b6ff1cd1197622704ca (patch) | |
| tree | c744f4cc38fa10f473f128e3e38bd83edfeed2ca /lib | |
| parent | 94d1cfbd85b60fc2f8495bd3c46377aa8564d074 (diff) | |
| download | samba-793b86f4cbfa763002246b6ff1cd1197622704ca.tar.gz samba-793b86f4cbfa763002246b6ff1cd1197622704ca.tar.bz2 samba-793b86f4cbfa763002246b6ff1cd1197622704ca.zip | |
conditional_aces: Avoid manual parsing for ace_condition_bytes, use DATA_BLOB
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/util/data_blob.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/data_blob.c b/lib/util/data_blob.c index 677f7c19211..69a340c6fb8 100644 --- a/lib/util/data_blob.c +++ b/lib/util/data_blob.c @@ -125,6 +125,7 @@ _PUBLIC_ int data_blob_cmp(const DATA_BLOB *d1, const DATA_BLOB *d2) } ret = memcmp(d1->data, d2->data, MIN(d1->length, d2->length)); if (ret == 0) { + /* Note this ordering is used in conditional aces */ return d1->length - d2->length; } return ret; |
