X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fclient.c;fp=daemon%2Fclient.c;h=bf3082176c446c6258d6209b4acfdfba27fd1bcd;hb=1104a3d449ca71696d000ac4d9c253ecf66ba3e6;hp=63e40b237af40e47beb6e6b35a657007d944e77b;hpb=2c36a4aca6fa975adfd02e4e167e583fb087d1f0;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)