author | Nick Hengeveld <nickh@reactrix.com> | |
Wed, 31 May 2006 23:25:03 +0000 (16:25 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 1 Jun 2006 01:24:05 +0000 (18:24 -0700) | ||
commit | 9094950d738176db2c0d9d7e4e3843c056a5d222 | |
tree | dd16af3d956ca8d2e78e95538374accc0e9485b2 | tree | snapshot |
parent | 07001f95a60149619bed62af7ad59052ace7ac92 | commit | diff |
http: prevent segfault during curl handle reuse
If a curl handle is configured with special options, they may reference
information that is freed after the request is complete which can cause
a segfault if the curl handle is reused for a different type of request.
This patch resets these options to a safe state when a transfer slot is
assigned to a new request.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
If a curl handle is configured with special options, they may reference
information that is freed after the request is complete which can cause
a segfault if the curl handle is reused for a different type of request.
This patch resets these options to a safe state when a transfer slot is
assigned to a new request.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http.c | diff | blob | history |