r5664: simo, please look into this. It is possible for the number of elements
authorAndrew Tridgell <tridge@samba.org>
Sat, 5 Mar 2005 21:59:02 +0000 (21:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:57 +0000 (13:10 -0500)
commitec97506a51bf211409dedd6f14b5a40267879c94
treec12d67d0c33911dcf5f53f93b7d4d85fb84daabc
parent75b3cfc17def4a5b49c7fbc4cfae1c85d12a3a11
r5664: simo, please look into this. It is possible for the number of elements
in msg[0] to be 0, in which case we crash. This is a workaround.

Also, if you could please split up this function into readable
pieces. It's a bit of a mess at the moment.
(This used to be commit 19a22f78c28a4b265f59df1b43c1bb6c9e58f736)
source4/lib/ldb/common/ldb_modules.c