diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
commit | d8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch) | |
tree | 0ebb0db416c157fcfde51a941185819dd12d51fd /src/core/core_api_mq.c | |
parent | 5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff) | |
download | gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip |
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/core/core_api_mq.c')
-rw-r--r-- | src/core/core_api_mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_api_mq.c b/src/core/core_api_mq.c index 11e2214fd..12c7a3bdd 100644 --- a/src/core/core_api_mq.c +++ b/src/core/core_api_mq.c | |||
@@ -86,7 +86,7 @@ core_mq_ntr (void *cls, size_t size, | |||
86 | GNUNET_MQ_inject_error (mq, GNUNET_MQ_ERROR_WRITE); | 86 | GNUNET_MQ_inject_error (mq, GNUNET_MQ_ERROR_WRITE); |
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
89 | memcpy (buf, mh, msg_size); | 89 | GNUNET_memcpy (buf, mh, msg_size); |
90 | GNUNET_MQ_impl_send_continue (mq); | 90 | GNUNET_MQ_impl_send_continue (mq); |
91 | return msg_size; | 91 | return msg_size; |
92 | } | 92 | } |