From 6376ebc52453411c0e32f3c81b4fdd94b072e951 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 8 Oct 2013 14:54:44 +0000 Subject: [PATCH] - bail out if peer is not running --- src/testbed/gnunet-service-testbed_peers.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c index 274360978..74aff7d47 100644 --- a/src/testbed/gnunet-service-testbed_peers.c +++ b/src/testbed/gnunet-service-testbed_peers.c @@ -1209,6 +1209,11 @@ GST_handle_manage_peer_service (void *cls, struct GNUNET_SERVER_Client *client, GNUNET_SERVER_receive_done (client, GNUNET_OK); return; } + if (GNUNET_NO == peer->details.local.is_running) + { + emsg = GNUNET_strdup ("Peer not running\n"); + goto err_ret; + } if ((0 != peer->reference_cnt) && ( (0 == strcasecmp ("core", service)) || (0 == strcasecmp ("transport", service)) ) ) -- 2.25.1