On Mon 20 Nov 2017 09:10:03 PM CET, Max Reitz <mre...@redhat.com> wrote: > Signed-off-by: Max Reitz <mre...@redhat.com> > --- > block/curl.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/block/curl.c b/block/curl.c > index 11318a9a29..fe57223fda 100644 > --- a/block/curl.c > +++ b/block/curl.c > @@ -957,6 +957,20 @@ static int64_t curl_getlength(BlockDriverState *bs) > return s->len; > } > > +static void curl_refresh_filename(BlockDriverState *bs) > +{ > + BDRVCURLState *s = bs->opaque; > + > + if (!s->sslverify || s->cookie || > + s->username || s->password || s->proxyusername || s->proxypassword) > + { > + return; > + } > + > + pstrcpy(bs->exact_filename, sizeof(bs->exact_filename), s->url); > +}
Reviewed-by: Alberto Garcia <be...@igalia.com> Berto