diff libfdproto/messages.c @ 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 84a3c9c4b834
children 6a35c5470ef4 3cbe458fbfa9
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"