diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 10:10:03 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 10:10:09 +0100 |
commit | 92ae38e7170d435b3ae54374735e5a4896ece6b4 (patch) | |
tree | 476d4389ee3e1be979da0c24c354e329e4841087 | |
parent | d9e7f5ff48836e23b2de63d9871d337e3a8a475c (diff) |
add missing file exists check
-rw-r--r-- | file.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -176,6 +176,9 @@ uh_path_lookup(struct client *cl, const char *url) exists = !!canonpath(uh_buf, path_phys); uh_buf[i] = ch; + if (!exists) + continue; + snprintf(path_info, sizeof(path_info), "%s", uh_buf + i); break; } |