diff options
author | Gabor X Toth <*@tg-x.net> | 2013-09-16 12:21:10 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-09-16 12:21:10 +0000 |
commit | cf45705470db25831f48452380021d1429973139 (patch) | |
tree | b800a33392b3346c066b27b11dfdbcf0f2edd488 /src/identity/gnunet-service-identity.c | |
parent | 312be136b087ce987ffe31c7d3ec4ac8a9670ea1 (diff) | |
download | gnunet-cf45705470db25831f48452380021d1429973139.tar.gz gnunet-cf45705470db25831f48452380021d1429973139.zip |
psycstore: fixing issues reported by static code analysis
Diffstat (limited to 'src/identity/gnunet-service-identity.c')
-rw-r--r-- | src/identity/gnunet-service-identity.c | 3 |
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, |