PATCH: Fix for crash-on-startup issues for non-US issues - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: PATCH: Fix for crash-on-startup issues for non-US issues (/showthread.php?tid=29355) |
PATCH: Fix for crash-on-startup issues for non-US issues - micolous - 2007-10-27 Hi, I have found that the recent XBMC revisions (specifically r10624 and r10626 that I've tried) have a bug in the connection test which causes XBMC to crash if you are outside of the US. The problem specifically is that the HTTP library tries to follow redirects in HEAD requests, causing what I think might be a null pointer issue. Outside of the US, http://www.google.com/ automatically redirects to the local version of Google. This patch makes it so that the HTTP library will NOT follow redirects in HEAD requests, and updates Google's IP address so it is current. Code: Index: xbmc/utils/HTTP.cpp (pastebin link for if the forum decides to eat my code) - d4rk - 2007-10-30 Thanks for the patch, it was applied in 10643. |