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 service: Fix - handle c


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: RPS service: Fix - handle case of nonexisting sub
Date: Thu, 11 Oct 2018 20:33:35 +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 9cb80ff94 RPS service: Fix - handle case of nonexisting sub
9cb80ff94 is described below

commit 9cb80ff9474923b25ca722f93fe11e12c5551a7c
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Oct 11 20:31:33 2018 +0200

    RPS service: Fix - handle case of nonexisting sub
---
 src/rps/gnunet-service-rps.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index b41a77074..791c5328c 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2163,8 +2163,16 @@ send_view (const struct ClientContext *cli_ctx,
 
   if (NULL == view_array)
   {
-    view_size = View_size (cli_ctx->sub->view);
-    view_array = View_get_as_array (cli_ctx->sub->view);
+    if (NULL == cli_ctx->sub)
+    {
+      view_size = View_size (msub->view);
+      view_array = View_get_as_array (msub->view);
+    }
+    else
+    {
+      view_size = View_size (cli_ctx->sub->view);
+      view_array = View_get_as_array (cli_ctx->sub->view);
+    }
   }
 
   ev = GNUNET_MQ_msg_extra (out_msg,

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



reply via email to

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