diff --git a/src/offchannel.c b/src/offchannel.c index 4db3fcf2..e01f76c7 100644 --- a/src/offchannel.c +++ b/src/offchannel.c @@ -231,7 +231,7 @@ void offchannel_cancel(uint64_t wdev_id, uint32_t id) destroy: if (info->destroy) - info->destroy(info->error, info->user_data); + info->destroy(-ECANCELED, info->user_data); info->destroy = NULL; info->started = NULL;