#include <ccan/tal/tal.h>
#include <ccan/compiler/compiler.h>
#include <ccan/list/list.h>
-#include <ccan/take/take.h>
#include <ccan/alignof/alignof.h>
#include <assert.h>
#include <stdio.h>
{
struct length *l;
+ if (!ptr)
+ return 0;
+
l = find_property(debug_tal(to_tal_hdr(ptr)), LENGTH);
if (!l)
return 0;