aboutsummaryrefslogtreecommitdiff
path: root/src/identity/gnunet-service-identity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/gnunet-service-identity.c')
-rw-r--r--src/identity/gnunet-service-identity.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c
index f55e65019..52d072967 100644
--- a/src/identity/gnunet-service-identity.c
+++ b/src/identity/gnunet-service-identity.c
@@ -189,7 +189,8 @@ send_result_code (struct GNUNET_SERVER_Client *client,
189 rcm->header.type = htons (GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE); 189 rcm->header.type = htons (GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE);
190 rcm->header.size = htons (sizeof (struct GNUNET_IDENTITY_ResultCodeMessage) + elen); 190 rcm->header.size = htons (sizeof (struct GNUNET_IDENTITY_ResultCodeMessage) + elen);
191 rcm->result_code = htonl (result_code); 191 rcm->result_code = htonl (result_code);
192 memcpy (&rcm[1], emsg, elen); 192 if (0 < elen)
193 memcpy (&rcm[1], emsg, elen);
193 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 194 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
194 "Sending result %d (%s) to client\n", 195 "Sending result %d (%s) to client\n",
195 (int) result_code, 196 (int) result_code,