tdb: add proper OOM/ENOSPC handling to tdb_expand()
authorStefan Metzmacher <metze@samba.org>
Tue, 28 May 2013 11:04:29 +0000 (13:04 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2013 08:21:30 +0000 (10:21 +0200)
commitae220818894453c35fe4ff2b154b9e8b88a29f71
tree138e62f2b1c6738e0ba1c8232149daec922f0785
parent443d2ba97c5447cd706474ee10bdb4752828d97e
tdb: add proper OOM/ENOSPC handling to tdb_expand()

Failing to do so will result in corrupt tdbs: We will overwrite
the hash chain pointers with 0x42424242.

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>