# HG changeset patch # User Thomas Klausner # Date 1511792480 -3600 # Node ID 82b386714795608a34cb77fcb949abf5e7ca4485 # Parent afe0ecdb0692132e52ba6a078a50d6a4a00efb48 Set callback data also when only setting expire callback (and not answer callback as well). It is used when calling the expire callback, so not setting it makes no sense. diff -r afe0ecdb0692 -r 82b386714795 libfdproto/messages.c --- a/libfdproto/messages.c Mon Nov 27 15:18:57 2017 +0100 +++ b/libfdproto/messages.c Mon Nov 27 15:21:20 2017 +0100 @@ -1260,6 +1260,7 @@ } if (expirecb) { msg->msg_cb.expirecb = expirecb; + msg->msg_cb.data = data; if (timeout) { memcpy(&msg->msg_cb.timeout, timeout, sizeof(struct timespec)); }