X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fclient.c;h=bf3082176c446c6258d6209b4acfdfba27fd1bcd;hb=275514c05a8122e0a1bf66df95b5f8f7ae6cbcdb;hp=63e40b237af40e47beb6e6b35a657007d944e77b;hpb=302a260054ea38d3cb97be6d1a3010082c09265d;p=doldaconnect.git diff --git a/daemon/client.c b/daemon/client.c index 63e40b2..bf30821 100644 --- a/daemon/client.c +++ b/daemon/client.c @@ -528,13 +528,14 @@ static int hashfile(char *path) */ static void checkhashes(void) { - struct sharecache *node; + struct sharecache *node, *next; struct hashcache *hc; char *path; node = shareroot->child; - for(node = shareroot->child; node != NULL; node = nextscnode(node)) + for(node = shareroot->child; node != NULL; node = next) { + next = nextscnode(node); if(node->f.b.type != FILE_REG) continue; if(!node->f.b.hastth)