aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore_api_monitor.c')
-rw-r--r--src/namestore/namestore_api_monitor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c
index 050d88ba5..c6509941f 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -263,8 +263,12 @@ GNUNET_NAMESTORE_zone_monitor_start (const struct GNUNET_CONFIGURATION_Handle *c
263 struct GNUNET_NAMESTORE_ZoneMonitor *zm; 263 struct GNUNET_NAMESTORE_ZoneMonitor *zm;
264 struct GNUNET_CLIENT_Connection *client; 264 struct GNUNET_CLIENT_Connection *client;
265 265
266 if (NULL == zone)
267 return NULL;
266 if (NULL == (client = GNUNET_CLIENT_connect ("namestore", cfg))) 268 if (NULL == (client = GNUNET_CLIENT_connect ("namestore", cfg)))
267 return NULL; 269 return NULL;
270
271
268 zm = GNUNET_new (struct GNUNET_NAMESTORE_ZoneMonitor); 272 zm = GNUNET_new (struct GNUNET_NAMESTORE_ZoneMonitor);
269 zm->cfg = cfg; 273 zm->cfg = cfg;
270 zm->h = client; 274 zm->h = client;