This is the correct way to mark failure: it also sets *max to 0. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
These unit tests stayed under lightningd/ even though the units they test are elsewhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>