gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: codesonar finding 1575.9537


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: codesonar finding 1575.9537
Date: Tue, 26 Jun 2018 14:31:21 +0200

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

t3sserakt pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 4af6e380b codesonar finding 1575.9537
     new 52b006735 Merge branch 'master' of ssh://gnunet.org/gnunet
4af6e380b is described below

commit 4af6e380bbda66c267737c753ee8357c8b99b0fa
Author: t3sserakt <address@hidden>
AuthorDate: Tue Jun 26 14:30:18 2018 +0200

    codesonar finding 1575.9537
---
 src/cadet/gnunet-service-cadet_peer.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cadet/gnunet-service-cadet_peer.c 
b/src/cadet/gnunet-service-cadet_peer.c
index 8e536e376..53c51c27a 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -243,7 +243,11 @@ GCP_2s (const struct CadetPeer *cp)
   static char buf[5];
   char *ret;
 
+  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";
   strncpy (buf,
            ret,
            sizeof (buf) - 1);

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



reply via email to

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