Print an error message and try to deserialize the remaining elements
instead of calling BUG().
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
key->byteorder = set->key->byteorder;
key->len = set->key->len;
} else {
- BUG("Unexpected set element with no key\n");
+ netlink_io_error(ctx, NULL,
+ "Unexpected set element with no key");
+ return 0;
}
expr = set_elem_expr_alloc(&netlink_location, key);