diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-22 16:37:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-22 16:37:48 +0100 |
commit | aa189e94b593fd5679f328333a3aabef742d9d69 (patch) | |
tree | 283ce8e2fc9a91c8de179c1f1789ee9165839749 /src/util/mq.c | |
parent | f74bc79fcea9c0ecb5dc0af8e49764fd31e34d4d (diff) | |
download | gnunet-aa189e94b593fd5679f328333a3aabef742d9d69.tar.gz gnunet-aa189e94b593fd5679f328333a3aabef742d9d69.zip |
add sanity check for GNUNET_MQ_notify_sent
Diffstat (limited to 'src/util/mq.c')
-rw-r--r-- | src/util/mq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/mq.c b/src/util/mq.c index 985e86331..d12f69e5f 100644 --- a/src/util/mq.c +++ b/src/util/mq.c | |||
@@ -811,12 +811,13 @@ GNUNET_MQ_assoc_remove (struct GNUNET_MQ_Handle *mq, | |||
811 | * @param cb_cls closure for the callback | 811 | * @param cb_cls closure for the callback |
812 | */ | 812 | */ |
813 | void | 813 | void |
814 | GNUNET_MQ_notify_sent (struct GNUNET_MQ_Envelope *mqm, | 814 | GNUNET_MQ_notify_sent (struct GNUNET_MQ_Envelope *ev, |
815 | GNUNET_SCHEDULER_TaskCallback cb, | 815 | GNUNET_SCHEDULER_TaskCallback cb, |
816 | void *cb_cls) | 816 | void *cb_cls) |
817 | { | 817 | { |
818 | mqm->sent_cb = cb; | 818 | GNUNET_assert (NULL == ev->sent_cb); |
819 | mqm->sent_cls = cb_cls; | 819 | ev->sent_cb = cb; |
820 | ev->sent_cls = cb_cls; | ||
820 | } | 821 | } |
821 | 822 | ||
822 | 823 | ||