avformat/http: return EINVAL from ff_http_do_new_request() if re-used with different...
authorAman Gupta <aman@tmm1.net>
Tue, 12 Dec 2017 23:50:44 +0000 (15:50 -0800)
committerAman Gupta <aman@tmm1.net>
Fri, 22 Dec 2017 22:42:35 +0000 (14:42 -0800)
commit28358e466d4f4bc54f8137e0597057f33100b236
tree2166635a1c8207359a1771219c2644c8b86ae606
parentd2a2bc9a9f305008e417d72432322fcf48400b33
avformat/http: return EINVAL from ff_http_do_new_request() if re-used with different hostname

This will prevent improper use of ff_http_do_new_request() if the user
tries to send a request for a different host to a previously connected
persistent http/1.1 connection.

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Karthick J <kjeyapal@akamai.com>
libavformat/http.c