diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index bd642f155..b375d51ca 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c | |||
@@ -243,16 +243,16 @@ GCP_2s (const struct CadetPeer *cp) | |||
243 | static char buf[5]; | 243 | static char buf[5]; |
244 | char *ret; | 244 | char *ret; |
245 | 245 | ||
246 | if (NULL == cp || | 246 | if ((NULL == cp) || |
247 | NULL == &cp->pid.public_key){ | 247 | (NULL == &cp->pid.public_key)) |
248 | return "NULL"; | 248 | return "NULL"; |
249 | } | 249 | |
250 | 250 | ||
251 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key); | 251 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key); |
252 | 252 | ||
253 | if (NULL == ret){ | 253 | if (NULL == ret) |
254 | return "NULL"; | 254 | return "NULL"; |
255 | } | 255 | |
256 | 256 | ||
257 | strncpy (buf, | 257 | strncpy (buf, |
258 | ret, | 258 | ret, |