Mercurial > hg > freeDiameter
comparison 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 |
comparison
equal
deleted
inserted
replaced
1326:afe0ecdb0692 | 1327:82b386714795 |
---|---|
1258 msg->msg_cb.anscb = anscb; | 1258 msg->msg_cb.anscb = anscb; |
1259 msg->msg_cb.data = data; | 1259 msg->msg_cb.data = data; |
1260 } | 1260 } |
1261 if (expirecb) { | 1261 if (expirecb) { |
1262 msg->msg_cb.expirecb = expirecb; | 1262 msg->msg_cb.expirecb = expirecb; |
1263 msg->msg_cb.data = data; | |
1263 if (timeout) { | 1264 if (timeout) { |
1264 memcpy(&msg->msg_cb.timeout, timeout, sizeof(struct timespec)); | 1265 memcpy(&msg->msg_cb.timeout, timeout, sizeof(struct timespec)); |
1265 } | 1266 } |
1266 } | 1267 } |
1267 | 1268 |