summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-24 22:29:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-24 22:29:13 (GMT)
commitff6e93fe605b748055267fd325c760d0f32dcf92 (patch)
treecd70b871a9496c5502b975236aa4c900af04ab28 /http-push.c
parent58066bec5a2cd8f5b6bb4884c8162364374ba0c1 (diff)
parent6589ebf107214a9e6db31764e847301f1adebc81 (diff)
downloadgit-ff6e93fe605b748055267fd325c760d0f32dcf92.zip
git-ff6e93fe605b748055267fd325c760d0f32dcf92.tar.gz
git-ff6e93fe605b748055267fd325c760d0f32dcf92.tar.bz2
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 cb5bf95..f743c97 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;
}
}