# HG changeset patch # User mstorsjo # Date 1276075176 0 # Node ID f221641c262afc192f3c432edab86cdc020216ef # Parent 49eedb93140e8f5aafa46aa8b201bf27edb07381 Make sure the http protocol handler returns errors if a delayed open had failed diff -r 49eedb93140e -r f221641c262a http.c --- a/http.c Wed Jun 09 08:59:41 2010 +0000 +++ b/http.c Wed Jun 09 09:19:36 2010 +0000 @@ -371,6 +371,8 @@ if (ret != 0) return ret; } + if (!s->hd) + return AVERROR(EIO); /* A size of zero can be used to force * initializaton of the connection. */ @@ -429,6 +431,8 @@ if (ret != 0) return ret; } + if (!s->hd) + return AVERROR(EIO); if (s->chunksize == -1) { /* headers are sent without any special encoding */ @@ -485,6 +489,8 @@ if (ret != 0) return ret; } + if (!s->hd) + return AVERROR(EIO); if (whence == AVSEEK_SIZE) return s->filesize;