projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8790a0d
)
coding style
author
t3sserakt
<t3ss@posteo.de>
Tue, 26 Jun 2018 13:11:08 +0000
(15:11 +0200)
committer
t3sserakt
<t3ss@posteo.de>
Tue, 26 Jun 2018 13:11:08 +0000
(15:11 +0200)
src/cadet/gnunet-service-cadet_peer.c
patch
|
blob
|
history
diff --git
a/src/cadet/gnunet-service-cadet_peer.c
b/src/cadet/gnunet-service-cadet_peer.c
index 53c51c27a95a508b1f1051efcf02f02c3e449e76..ac1ee59debefeb796c8c13e9cfc31377b3e732a7 100644
(file)
--- a/
src/cadet/gnunet-service-cadet_peer.c
+++ b/
src/cadet/gnunet-service-cadet_peer.c
@@
-243,11
+243,17
@@
GCP_2s (const struct CadetPeer *cp)
static char buf[5];
char *ret;
- if (NULL == cp || NULL == &cp->pid.public_key)
- return "NULL";
+ 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)
- return "NULL";
+
+ if (NULL == ret){
+ return "NULL";
+ }
+
strncpy (buf,
ret,
sizeof (buf) - 1);