summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-05-24 15:29:23 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-24 15:29:23 -0700
commit34ab57df974ad74cc93550bfac2f90d203837a17 (patch)
tree84da5c50e569edd9791fff35fcdc7e33a82cd504
parentMerge branch 'maint-1.6.1' into maint-1.6.2 (diff)
parentMerge branch 'maint-1.6.0' into maint-1.6.1 (diff)
downloadtgif-34ab57df974ad74cc93550bfac2f90d203837a17.tar.xz
Merge branch 'maint-1.6.1' into maint-1.6.2
* maint-1.6.1: http-push.c::remove_locks(): fix use after free
-rw-r--r--http-push.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index 968b6b0662..f101df4086 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1378,8 +1378,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;
}
}