- srm = (struct StoreRecordMessage *) message;
- if (NULL == record->sub_system || NULL == record->peer || NULL == record->key)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Full key not supplied in client store request\n"));
- PEERSTORE_destroy_record (record);
- GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
- return;
- }
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Received a store request (size: %lu).\n" " Sub system `%s'\n"
- " Peer `%s'\n" " Key `%s'\n" " Value size %lu\n"
- " Options: %d.\n", record->value_size, record->sub_system,
- GNUNET_i2s (record->peer), record->key, record->value_size,
- ntohl (srm->options));
- record->client = client;
- if (GNUNET_OK !=
- db->store_record (db->cls, record->sub_system, record->peer, record->key,
- record->value, record->value_size, *record->expiry,
- ntohl (srm->options), store_record_continuation,
- record))