diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-18 00:04:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-18 00:04:52 +0000 |
commit | cbdeb30a1b82bb0d1492a86b46aad468f0a86acf (patch) | |
tree | cfc084396c1d434a0c8d41e9b638b91f55bcc7f5 /package/uhttpd/src/uhttpd-utils.h | |
parent | af0ecdebfdd43aa46bf624d5fa67a868e2f14857 (diff) | |
download | mtk-20170518-cbdeb30a1b82bb0d1492a86b46aad468f0a86acf.zip mtk-20170518-cbdeb30a1b82bb0d1492a86b46aad468f0a86acf.tar.gz mtk-20170518-cbdeb30a1b82bb0d1492a86b46aad468f0a86acf.tar.bz2 |
uhttpd: - fix parsing of interpreter entries in the config file, fixes serving of static files as .cgi with X-Wrt - better cope with connection aborts, especially during header transfer - fix return value checking of TLS reads and writes, solves some blocking issues
SVN-Revision: 22692
Diffstat (limited to 'package/uhttpd/src/uhttpd-utils.h')
-rw-r--r-- | package/uhttpd/src/uhttpd-utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/uhttpd/src/uhttpd-utils.h b/package/uhttpd/src/uhttpd-utils.h index 95535d6..3514ce1 100644 --- a/package/uhttpd/src/uhttpd-utils.h +++ b/package/uhttpd/src/uhttpd-utils.h @@ -36,6 +36,13 @@ #define fd_cloexec(fd) \ fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC) +#define ensure_out(x) \ + do { if((x) < 0) goto out; } while(0) + +#define ensure_ret(x) \ + do { if((x) < 0) return -1; } while(0) + + struct path_info { char *root; char *phys; |