Issue:
------
when url string is empty http parser does not seems to
return error and urldata being uninitialised cause
invalid length access in string.
Fix:
----
skip url parsing if url path is empty, this will allow
health check to fallback default to
"http:://<vmi-instance-ip>"
Closes-Bug:1548702
Change-Id: Iba608d01fa89656a7b902ca4781331ca60ac9789
(cherry picked from commit 60ecf03c6d710c79173b83c6afbbfc21bda68e64)
Reviewed: https:/ /review. opencontrail. org/17654 github. org/Juniper/ contrail- controller/ commit/ dc9c5e98358001e 9d39444a67cf259 3b4e2245f9
Committed: http://
Submitter: Zuul
Branch: R3.0
commit dc9c5e98358001e 9d39444a67cf259 3b4e2245f9
Author: Prabhjot Singh Sethi <email address hidden>
Date: Tue Feb 23 19:47:30 2016 +0530
Fix handling empty url string for Health Check
Issue:
------
when url string is empty http parser does not seems to
return error and urldata being uninitialised cause
invalid length access in string.
Fix: //<vmi- instance- ip>"
----
skip url parsing if url path is empty, this will allow
health check to fallback default to
"http::
Closes-Bug:1548702 6a7b902ca478133 1ca60ac9789 9173b83c6afbbfc 21bda68e64)
Change-Id: Iba608d01fa8965
(cherry picked from commit 60ecf03c6d710c7