summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-10-08 19:45:00 +0200
committerJo-Philipp Wich <jo@mein.io>2016-10-25 16:32:50 +0200
commit577c20c5f780a241d526b16345cf42ea81b675ab (patch)
tree1c5601c22ebdfc0147474db064a3d7d0a512c682 /utils.c
parentc0b5444b533e7177394ceaa247de4495307f72d6 (diff)
cgi: allow conf.cgi_docroot_path to be NULL
The check_cgi_path() function would segfault if we ever support running uhttpd without any CGI prefix. Add a check to prevent running uh_patch_match() when the prefix is unset. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'utils.c')
0 files changed, 0 insertions, 0 deletions