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 | 8d6da64cc3601d6381ea61988ff79cb56e1724f9 (patch) | |
tree | 6ce25834c1c3846ab105f2bd2d8bdd5f1a003f34 /package/uhttpd/src/uhttpd-utils.h | |
parent | 2ada3f9d27ee5162ef444e984d8969f813a1cc37 (diff) | |
download | upstream-8d6da64cc3601d6381ea61988ff79cb56e1724f9.tar.gz upstream-8d6da64cc3601d6381ea61988ff79cb56e1724f9.tar.bz2 upstream-8d6da64cc3601d6381ea61988ff79cb56e1724f9.zip |
[package] 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22692 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 95535d6fe7..3514ce1cac 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; |