mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Don't segfault if given an invalid URL (doh!)
Submitted by: green
This commit is contained in:
parent
ec20fe00cc
commit
ec850e74c0
1 changed files with 2 additions and 1 deletions
|
|
@ -400,7 +400,8 @@ fetch(char *URL, char *path)
|
|||
fclose(f);
|
||||
if (of && of != stdout)
|
||||
fclose(of);
|
||||
fetchFreeURL(url);
|
||||
if (url)
|
||||
fetchFreeURL(url);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue