gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r38232 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r38232 - gnunet/src/cadet
Date: Sat, 29 Oct 2016 16:56:52 +0200

Author: bartpolot
Date: 2016-10-29 16:56:52 +0200 (Sat, 29 Oct 2016)
New Revision: 38232

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- Fix Coverity #153011, abort on NULL path instead of dereferencing later

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2016-10-27 15:02:36 UTC 
(rev 38231)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2016-10-29 14:56:52 UTC 
(rev 38232)
@@ -2122,15 +2122,8 @@
 
   connection_reset_timeout (c, fwd);
 
-  /* Add path to peers? */
-  if (NULL != c->path)
-  {
-    GCP_add_path_to_all (c->path, GNUNET_YES);
-  }
-  else
-  {
-    GNUNET_break (0);
-  }
+  GNUNET_assert (NULL != c->path);
+  GCP_add_path_to_all (c->path, GNUNET_YES);
 
   /* Message for us as creator? */
   if (GNUNET_YES == GCC_is_origin (c, GNUNET_YES))




reply via email to

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