aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c12
1 files 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,
2163 2163
2164 if (NULL == view_array) 2164 if (NULL == view_array)
2165 { 2165 {
2166 view_size = View_size (cli_ctx->sub->view); 2166 if (NULL == cli_ctx->sub)
2167 view_array = View_get_as_array (cli_ctx->sub->view); 2167 {
2168 view_size = View_size (msub->view);
2169 view_array = View_get_as_array (msub->view);
2170 }
2171 else
2172 {
2173 view_size = View_size (cli_ctx->sub->view);
2174 view_array = View_get_as_array (cli_ctx->sub->view);
2175 }
2168 } 2176 }
2169 2177
2170 ev = GNUNET_MQ_msg_extra (out_msg, 2178 ev = GNUNET_MQ_msg_extra (out_msg,