diff --git a/http-push.c b/http-push.c
index dac2c6e0524e3051ca98bfb4d75fbc81efe91eef..45e8a69e2d6b83f5a1564e7d1fe40d783d87ae3e 100644 (file)
--- a/http-push.c
+++ b/http-push.c
fprintf(stderr, "Removing remote locks...\n");
while (lock) {
+ struct remote_lock *next = lock->next;
unlock_remote(lock);
- lock = lock->next;
+ lock = next;
}
}