v1.0.5 : Fixed a potential failure in MySQL CM and fixed code

This commit is contained in:
Brendan LE GLAUNEC
2016-08-31 12:46:21 +02:00
parent 27b296c9d2
commit ae3329bd25
4 changed files with 7 additions and 3 deletions
+1
View File
@@ -75,6 +75,7 @@ curl_describe(const std::string& path, bool logs) {
if (logs) {
// Some cameras return 400 instead of 401, don't know why.
// Some cameras timeout and then curl considers the status as 0
// GST-RTSP-SERVER returns 404 instead of 401, then 401 instead of 404.
if (rc != 401 && rc != 400 && rc && pos == std::string::npos)
LOG_INFO_("Unprotected camera discovered.", "brutelogs");
return ((res == CURLE_OK) && rc != 401 && rc != 400 && rc);