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/conversation/conversation_api_call.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/conversation/conversation_api_call.c')
-rw-r--r-- | src/conversation/conversation_api_call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conversation/conversation_api_call.c b/src/conversation/conversation_api_call.c index ad83288b9..cd1bf8f86 100644 --- a/src/conversation/conversation_api_call.c +++ b/src/conversation/conversation_api_call.c | |||
@@ -177,7 +177,7 @@ transmit_call_audio (void *cls, | |||
177 | e = GNUNET_MQ_msg_extra (am, | 177 | e = GNUNET_MQ_msg_extra (am, |
178 | data_size, | 178 | data_size, |
179 | GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO); | 179 | GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO); |
180 | memcpy (&am[1], data, data_size); | 180 | GNUNET_memcpy (&am[1], data, data_size); |
181 | GNUNET_MQ_send (call->mq, e); | 181 | GNUNET_MQ_send (call->mq, e); |
182 | } | 182 | } |
183 | 183 | ||
@@ -442,7 +442,7 @@ handle_gns_response (void *cls, | |||
442 | GNUNET_break_op (0); | 442 | GNUNET_break_op (0); |
443 | continue; | 443 | continue; |
444 | } | 444 | } |
445 | memcpy (&call->phone_record, | 445 | GNUNET_memcpy (&call->phone_record, |
446 | rd[i].data, | 446 | rd[i].data, |
447 | rd[i].data_size); | 447 | rd[i].data_size); |
448 | e = GNUNET_MQ_msg (ccm, GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL); | 448 | e = GNUNET_MQ_msg (ccm, GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL); |