summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-24 22:29:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-24 22:29:33 (GMT)
commitf5b223abfdc01455d42ed005b4fd9330b06c2967 (patch)
treed9d07255c80520b8de3ad2c5dc8d9370ae0149fd /http-push.c
parente701fadb9e0e51a6811690d95a53bd1f5b6fad86 (diff)
parent34ab57df974ad74cc93550bfac2f90d203837a17 (diff)
downloadgit-f5b223abfdc01455d42ed005b4fd9330b06c2967.zip
git-f5b223abfdc01455d42ed005b4fd9330b06c2967.tar.gz
git-f5b223abfdc01455d42ed005b4fd9330b06c2967.tar.bz2
Merge branch 'maint-1.6.2' into maint
* maint-1.6.2: 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 5138224..9da1420 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;
}
}