Changeset 4290
- Timestamp:
- 03/07/10 22:23:24 (6 months ago)
- Files:
-
- 1 modified
-
trunk/showtime/src/fileaccess/fa_http.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/showtime/src/fileaccess/fa_http.c
r4287 r4290 1711 1711 1712 1712 hc = hf->hf_connection = http_connection_get(hostname, port, errbuf, errlen); 1713 if(hf->hf_connection == NULL) 1713 if(hf->hf_connection == NULL) { 1714 http_destroy(hf); 1714 1715 return -1; 1716 } 1715 1717 1716 1718 htsbuf_queue_init(&q, 0); … … 1771 1773 case 303: 1772 1774 case 307: 1773 if(redirect(hf, &redircount, errbuf, errlen, code)) 1775 if(redirect(hf, &redircount, errbuf, errlen, code)) { 1776 http_destroy(hf); 1774 1777 return -1; 1778 } 1775 1779 goto retry; 1776 1780 1777 1781 case 401: 1778 if(authenticate(hf, errbuf, errlen)) 1782 if(authenticate(hf, errbuf, errlen)) { 1783 http_destroy(hf); 1779 1784 return -1; 1785 } 1780 1786 goto retry; 1781 1787