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:
2e6ee41
)
rps cli: fix codesonars NULL-dereference warning
author
Julius Bünger
<buenger@mytum.de>
Tue, 26 Jun 2018 21:03:04 +0000
(23:03 +0200)
committer
Julius Bünger
<buenger@mytum.de>
Tue, 26 Jun 2018 21:05:53 +0000
(23:05 +0200)
src/rps/gnunet-rps.c
patch
|
blob
|
history
diff --git
a/src/rps/gnunet-rps.c
b/src/rps/gnunet-rps.c
index 739f71dac5f531a772e91a3531ea6495687d204e..b3785a7334442611b0847d3381145764c5a06515 100644
(file)
--- a/
src/rps/gnunet-rps.c
+++ b/
src/rps/gnunet-rps.c
@@
-150,6
+150,11
@@
run (void *cls,
static struct GNUNET_PeerIdentity zero_pid;
rps_handle = GNUNET_RPS_connect (cfg);
+ if (NULL == rps_handle)
+ {
+ FPRINTF (stderr, "Failed to connect to the rps service\n");
+ return;
+ }
if ((0 == memcmp (&zero_pid, &peer_id, sizeof (peer_id))) &&
(!view_update))