changeset 1327:82b386714795

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.
author Thomas Klausner <tk@giga.or.at>
date Mon, 27 Nov 2017 15:21:20 +0100
parents afe0ecdb0692
children 81af4f5a517a
files libfdproto/messages.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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));
 		}
"Welcome to our mercurial repository"