Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c36a4a
)
Fix segv bug in checkhashes.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 30 Aug 2007 01:28:06 +0000
(
03:28
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 30 Aug 2007 01:28:06 +0000
(
03:28
+0200)
daemon/client.c
patch
|
blob
|
blame
|
history
diff --git
a/daemon/client.c
b/daemon/client.c
index
63e40b2
..
bf30821
100644
(file)
--- 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 = next
scnode(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)