diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-20 21:05:18 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-20 21:05:18 +0200 |
commit | 597539814533500b36b9d11ddf3868294b9e1ac2 (patch) | |
tree | 109269ae160ed25a595e1f9d2442285589580e16 /src | |
parent | d9137653d89ed3497d8a23dc049216bd316e07ce (diff) |
fix crash on namestore disconnect
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/gnunet-zoneimport.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c index b394178a6c..57be5da710 100644 --- a/src/namestore/gnunet-zoneimport.c +++ b/src/namestore/gnunet-zoneimport.c @@ -1494,6 +1494,16 @@ do_shutdown (void *cls) /** + * Iterate over all of the zones we care about and see which records + * we may need to re-fetch when. + * + * @param cls NULL + */ +static void +iterate_zones (void *cls); + + +/** * Function called if #GNUNET_NAMESTORE_records_lookup() failed. * Just logs an error. * @@ -1507,6 +1517,9 @@ ns_lookup_error_cb (void *cls) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Failed to load data from namestore for zone `%s'\n", zone->domain); + zone_it = NULL; + ns_iterator_trigger_next = 0; + iterate_zones (NULL); } |