aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-rps.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-06-26 23:03:04 +0200
committerJulius Bünger <buenger@mytum.de>2018-06-26 23:05:53 +0200
commit8d2ae5b0fa8a48b2fd975d3e7217b2331940c4d3 (patch)
tree3f07713849ce9a1aac35030762901c86df78be1b /src/rps/gnunet-rps.c
parent2e6ee4190da0a0bc732dcc5bab2cb19a8d1470eb (diff)
downloadgnunet-8d2ae5b0fa8a48b2fd975d3e7217b2331940c4d3.tar.gz
gnunet-8d2ae5b0fa8a48b2fd975d3e7217b2331940c4d3.zip
rps cli: fix codesonars NULL-dereference warning
Diffstat (limited to 'src/rps/gnunet-rps.c')
-rw-r--r--src/rps/gnunet-rps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rps/gnunet-rps.c b/src/rps/gnunet-rps.c
index 739f71dac..b3785a733 100644
--- a/src/rps/gnunet-rps.c
+++ b/src/rps/gnunet-rps.c
@@ -150,6 +150,11 @@ run (void *cls,
150 static struct GNUNET_PeerIdentity zero_pid; 150 static struct GNUNET_PeerIdentity zero_pid;
151 151
152 rps_handle = GNUNET_RPS_connect (cfg); 152 rps_handle = GNUNET_RPS_connect (cfg);
153 if (NULL == rps_handle)
154 {
155 FPRINTF (stderr, "Failed to connect to the rps service\n");
156 return;
157 }
153 158
154 if ((0 == memcmp (&zero_pid, &peer_id, sizeof (peer_id))) && 159 if ((0 == memcmp (&zero_pid, &peer_id, sizeof (peer_id))) &&
155 (!view_update)) 160 (!view_update))