mirror of
https://github.com/mirror/wget.git
synced 2025-02-06 09:40:24 +08:00
* src/url.c (append_uri_pathel): Check for possible NULL dereference
This commit is contained in:
parent
7da620c7ce
commit
fac8f8099d
@ -1463,14 +1463,18 @@ append_uri_pathel (const char *b, const char *e, bool escaped,
|
||||
{
|
||||
const char *p;
|
||||
int quoted, outlen;
|
||||
|
||||
int mask;
|
||||
|
||||
if (!dest)
|
||||
return;
|
||||
|
||||
if (opt.restrict_files_os == restrict_unix)
|
||||
mask = filechr_not_unix;
|
||||
else if (opt.restrict_files_os == restrict_vms)
|
||||
mask = filechr_not_vms;
|
||||
else
|
||||
mask = filechr_not_windows;
|
||||
|
||||
if (opt.restrict_files_ctrl)
|
||||
mask |= filechr_control;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user