From 484dea8d7a6bda9678c224437cc931b52f18dd17 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 16 Dec 2021 10:00:03 -0800 Subject: [PATCH] offchannel: always use -ECANCELED for cancelation info->error gets reset to zero on a successful ROC callback which was getting used for cancelation. --- src/offchannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;