/* Don't copy first peer. First peer is always the local one. Last
* peer is always the destination (leave as 0, EOL).
*/
- for (i = 0; i < off; i++)
+ for (i = 0; i <= off; i++)
id[i] = *GCP_get_id (GCPP_get_peer_at_offset (path,
- i + 1));
+ i));
GNUNET_MQ_send (mq,
env);
return GNUNET_YES;
static char buf[5];
char *ret;
- if (NULL == cp ||
- NULL == &cp->pid.public_key){
+ if ((NULL == cp) ||
+ (NULL == &cp->pid.public_key))
return "NULL";
- }
+
ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key);
- if (NULL == ret){
+ if (NULL == ret)
return "NULL";
- }
+
strncpy (buf,
ret,