diff --git a/http-push.c b/http-push.c
index 968b6b0662a89d437e53bcc699c65e98a745f659..f101df40861a13db40cb2f564476369f3765a28f 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;
}
}