aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_api_announce.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-08 17:20:23 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-08 17:20:23 +0000
commitd8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch)
tree0ebb0db416c157fcfde51a941185819dd12d51fd /src/regex/regex_api_announce.c
parent5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff)
downloadgnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz
gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/regex/regex_api_announce.c')
-rw-r--r--src/regex/regex_api_announce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex/regex_api_announce.c b/src/regex/regex_api_announce.c
index 8953436a1..8fded96d2 100644
--- a/src/regex/regex_api_announce.c
+++ b/src/regex/regex_api_announce.c
@@ -118,7 +118,7 @@ announce_reconnect (struct GNUNET_REGEX_Announcement *a)
118 am->compression = htons (a->compression); 118 am->compression = htons (a->compression);
119 am->reserved = htons (0); 119 am->reserved = htons (0);
120 am->refresh_delay = GNUNET_TIME_relative_hton (a->refresh_delay); 120 am->refresh_delay = GNUNET_TIME_relative_hton (a->refresh_delay);
121 memcpy (&am[1], 121 GNUNET_memcpy (&am[1],
122 a->regex, 122 a->regex,
123 slen); 123 slen);
124 GNUNET_MQ_send (a->mq, 124 GNUNET_MQ_send (a->mq,