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) | |
download | gnunet-597539814533500b36b9d11ddf3868294b9e1ac2.tar.gz gnunet-597539814533500b36b9d11ddf3868294b9e1ac2.zip |
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 b394178a6..57be5da71 100644 --- a/src/namestore/gnunet-zoneimport.c +++ b/src/namestore/gnunet-zoneimport.c | |||
@@ -1494,6 +1494,16 @@ do_shutdown (void *cls) | |||
1494 | 1494 | ||
1495 | 1495 | ||
1496 | /** | 1496 | /** |
1497 | * Iterate over all of the zones we care about and see which records | ||
1498 | * we may need to re-fetch when. | ||
1499 | * | ||
1500 | * @param cls NULL | ||
1501 | */ | ||
1502 | static void | ||
1503 | iterate_zones (void *cls); | ||
1504 | |||
1505 | |||
1506 | /** | ||
1497 | * Function called if #GNUNET_NAMESTORE_records_lookup() failed. | 1507 | * Function called if #GNUNET_NAMESTORE_records_lookup() failed. |
1498 | * Just logs an error. | 1508 | * Just logs an error. |
1499 | * | 1509 | * |
@@ -1507,6 +1517,9 @@ ns_lookup_error_cb (void *cls) | |||
1507 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1517 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1508 | "Failed to load data from namestore for zone `%s'\n", | 1518 | "Failed to load data from namestore for zone `%s'\n", |
1509 | zone->domain); | 1519 | zone->domain); |
1520 | zone_it = NULL; | ||
1521 | ns_iterator_trigger_next = 0; | ||
1522 | iterate_zones (NULL); | ||
1510 | } | 1523 | } |
1511 | 1524 | ||
1512 | 1525 | ||