aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-09-11 09:08:34 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-09-11 09:08:34 +0000
commitbe8c744b473a17f245aa377161860e236b581c83 (patch)
treeac25b5b0e68f71c8baa7fe6c6fbf671503b75814 /src
parentbe3a58fef06af2b80315ee27f11b4dc662ac4573 (diff)
downloadgnunet-be8c744b473a17f245aa377161860e236b581c83.tar.gz
gnunet-be8c744b473a17f245aa377161860e236b581c83.zip
zone cannot be NULL
Diffstat (limited to 'src')
-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;