author | Tay Ray Chuan <rctay89@gmail.com> | |
Sat, 6 Jun 2009 08:43:26 +0000 (16:43 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 6 Jun 2009 17:30:16 +0000 (10:30 -0700) | ||
commit | 16493eb0d0da26f80286b39c7b6900e261744afa | |
tree | 0bb792b08d7d27741aa2c2f4d5dc5fc97117ce26 | tree | snapshot |
parent | b74fce16fa51362d4a3875d46e488006c3ad5371 | commit | diff |
http*: cleanup slot->local after fclose
Set slot->local to NULL after doing a fclose() on the file it points
to. This prevents the passing of a FILE* pointer to a fclose()'d file
to ftell() in http.c::run_active_slot().
This issue was raised by Clemens Buchacher on 30th May 2009:
http://www.spinics.net/lists/git/msg104623.html
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Set slot->local to NULL after doing a fclose() on the file it points
to. This prevents the passing of a FILE* pointer to a fclose()'d file
to ftell() in http.c::run_active_slot().
This issue was raised by Clemens Buchacher on 30th May 2009:
http://www.spinics.net/lists/git/msg104623.html
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c | diff | blob | history | |
http-walker.c | diff | blob | history |