diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-12-30 08:50:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:01 -0500 |
commit | 4ff20fcd31bef1df561e6ae513581202b259c1f0 (patch) | |
tree | 864ee6b76937dbee529cc8f3c71e2defc2e6fc7c /source4/lib/ldb/include/dlinklist.h | |
parent | c82c9fe7bb47aa95d112159e46e79f52afe6f58d (diff) | |
download | samba-4ff20fcd31bef1df561e6ae513581202b259c1f0.tar.gz samba-4ff20fcd31bef1df561e6ae513581202b259c1f0.tar.bz2 samba-4ff20fcd31bef1df561e6ae513581202b259c1f0.zip |
r12600: Add a new module to sort the objectclass attribute on store. The
module is perhaps not the most efficient, but I think it is
reasonable.
This should restore operation of MMC against Samba4 (broken by the
templating fixes).
Andrew Bartlett
(This used to be commit 41948c4bdbfca1160a01a92994324f9e22422afe)
Diffstat (limited to 'source4/lib/ldb/include/dlinklist.h')
-rw-r--r-- | source4/lib/ldb/include/dlinklist.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/include/dlinklist.h b/source4/lib/ldb/include/dlinklist.h index 40f7f0a0c7..a39007375f 100644 --- a/source4/lib/ldb/include/dlinklist.h +++ b/source4/lib/ldb/include/dlinklist.h @@ -88,6 +88,8 @@ do { \ type tmp; \ for (tmp = (list1); tmp->next; tmp = tmp->next) ; \ tmp->next = (list2); \ - (list2)->prev = tmp; \ + if (list2) { \ + (list2)->prev = tmp; \ + } \ } \ } while (0) |