From 1731f24118c62e5ec1e4dac411435b852b735c2b Mon Sep 17 00:00:00 2001 From: Janosch Machowinski Date: Sun, 22 Mar 2015 21:28:44 +0100 Subject: [PATCH] Added runtime check for wrong curl version Curl might be installed in a wrong version, even if it was compiled with the right one. This is the case if a ubunutu/debian package with a broken dependency is installed. --- satip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/satip.c b/satip.c index a8dc3eb..c3652c1 100644 --- a/satip.c +++ b/satip.c @@ -141,6 +141,13 @@ bool cPluginSatip::Initialize(void) return false; } + curl_version_info_data *curlVersion = curl_version_info(CURLVERSION_NOW); + if(curlVersion->version_num < 0x072400) + { + error("CURL version >= 7.36.0 required"); + return false; + } + cSatipPoller::GetInstance()->Initialize(); cSatipDiscover::GetInstance()->Initialize(serversM); return cSatipDevice::Initialize(deviceCountM);