Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-25 02:29:55 +0400
committerJunio C Hamano <gitster@pobox.com>2009-05-25 02:29:55 +0400
commit9619ff14159ab3401636b9883a715b0f20b051df (patch)
tree6c6a310adf1f2138eca3f42bd484ac41ea7c50fe /http-push.c
parent7a7eb5173d4e16f0323b2c4078e88fc0a40c38b6 (diff)
parentf5b223abfdc01455d42ed005b4fd9330b06c2967 (diff)
Merge branch 'maint'
* maint: http-push.c::remove_locks(): fix use after free
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index dac2c6e052..45e8a69e2d 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1415,8 +1415,9 @@ static void remove_locks(void)
fprintf(stderr, "Removing remote locks...\n");
while (lock) {
+ struct remote_lock *next = lock->next;
unlock_remote(lock);
- lock = lock->next;
+ lock = next;
}
}