diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-29 08:05:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-29 08:05:52 +0000 |
commit | b80e650bad570e01b5600aab2a667d177fc17770 (patch) | |
tree | ae5b933796c34f8c0e56f54448da98c4174f683c /src/datastore | |
parent | 673dda8cec9a607d77543abd697982fc1fe9e271 (diff) | |
download | gnunet-b80e650bad570e01b5600aab2a667d177fc17770.tar.gz gnunet-b80e650bad570e01b5600aab2a667d177fc17770.zip |
travelhacking
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 26e894bf4..977f1398e 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -527,7 +527,8 @@ transmit_status (struct GNUNET_SERVER_Client *client, | |||
527 | sm->header.size = htons(sizeof(struct StatusMessage) + slen); | 527 | sm->header.size = htons(sizeof(struct StatusMessage) + slen); |
528 | sm->header.type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_STATUS); | 528 | sm->header.type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_STATUS); |
529 | sm->status = htonl(code); | 529 | sm->status = htonl(code); |
530 | memcpy (&sm[1], msg, slen); | 530 | if (slen > 0) |
531 | memcpy (&sm[1], msg, slen); | ||
531 | transmit (client, &sm->header, NULL, NULL, GNUNET_YES); | 532 | transmit (client, &sm->header, NULL, NULL, GNUNET_YES); |
532 | } | 533 | } |
533 | 534 | ||