commit 484dea8d7a6bda9678c224437cc931b52f18dd17
parent 4a8a43965f67241579de64e8d99010e1393be6f3
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 16 Dec 2021 10:00:03 -0800
offchannel: always use -ECANCELED for cancelation
info->error gets reset to zero on a successful ROC callback
which was getting used for cancelation.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;