Skip to content

Commit

Permalink
http-push.c::remove_locks(): fix use after free
Browse files Browse the repository at this point in the history
Noticed and reported by Serhat Şevki Dinçer.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed May 24, 2009
1 parent c98a95e commit 6589ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6589ebf

Please sign in to comment.