tdb: add proper OOM/ENOSPC handling to tdb_expand()
commit7ae09a9695bcc5fad606441db3ab6e413b9d48ce
authorStefan Metzmacher <metze@samba.org>
Tue, 28 May 2013 11:04:29 +0000 (28 13:04 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2013 08:21:30 +0000 (3 10:21 +0200)
tree763110b850631d0d51ed1f8e042b57a8b1609558
parent854c5f0aac03c7c6d7e1b37997dcdc848fec1499
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>
lib/tdb/common/io.c