uclient-fetch: Check for nullpointer returned by uclient_get_url_filename
authorTobias Schramm <tobleminer@gmail.com>
Sun, 18 Feb 2018 12:46:04 +0000 (13:46 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 20 Feb 2018 07:16:16 +0000 (08:16 +0100)
commit9fd8070c6395ee0ab6b5a7c0d98c370ce0847553
tree409bb975e7c8650d6be6d862c1d28cb004a673cd
parentf2573da7f508a916177af41efc56233a4985c498
uclient-fetch: Check for nullpointer returned by uclient_get_url_filename

uclient_get_url_filename may return a null ptr resulting in a null
ptr dereference by fprintf and open

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
uclient-fetch.c