access/sftp: fix argument to vlc_UrlParse
commite5172af02761157ad34783aa9dab084736d75d93
authorFilip Roséen <filip@atch.se>
Fri, 22 Jul 2016 01:02:54 +0000 (22 03:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 22 Jul 2016 09:08:08 +0000 (22 11:08 +0200)
treeb471d4eac3635ec38851badd100e5d6586e2d706
parentba48a9e88ffe3307d1f6e440fe538e303c1c113a
access/sftp: fix argument to vlc_UrlParse

Given that p_access->psz_location is the input-mrl with the scheme part
stripped, and that part is required for vlc_UrlParse to properly
identify the host we would never be able to open up a remote resource
using the module.

This fixes the issue by instead passing p_access->psz_url.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/sftp.c