gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: rps cli: fix codesonars NUL


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: rps cli: fix codesonars NULL-dereference warning
Date: Tue, 26 Jun 2018 23:06:07 +0200

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 8d2ae5b0f rps cli: fix codesonars NULL-dereference warning
8d2ae5b0f is described below

commit 8d2ae5b0fa8a48b2fd975d3e7217b2331940c4d3
Author: Julius Bünger <address@hidden>
AuthorDate: Tue Jun 26 23:03:04 2018 +0200

    rps cli: fix codesonars NULL-dereference warning
---
 src/rps/gnunet-rps.c | 5 +++++
 1 file changed, 5 insertions(+)

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,
   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))

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]