summaryrefslogtreecommitdiffstats
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-25 00:29:13 +0200
committerJunio C Hamano <gitster@pobox.com>2009-05-25 00:29:13 +0200
commitff6e93fe605b748055267fd325c760d0f32dcf92 (patch)
treecd70b871a9496c5502b975236aa4c900af04ab28 /http-push.c
parentMerge branch 'maint-1.6.0' into maint-1.6.1 (diff)
parenthttp-push.c::remove_locks(): fix use after free (diff)
downloadgit-ff6e93fe605b748055267fd325c760d0f32dcf92.tar.xz
git-ff6e93fe605b748055267fd325c760d0f32dcf92.zip
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: 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 cb5bf95a73..f743c9796a 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1356,8 +1356,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;
}
}