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)
commit19a22f78c28a4b265f59df1b43c1bb6c9e58f736
treee5e8c8bdaf6501dec4b900d114048310a22bee99
parent54e0be6f1eccbd870eb0e60ae8cdb90d2dc7f657
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.
source/lib/ldb/common/ldb_modules.c