diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-31 16:03:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-31 16:03:17 +0000 |
commit | d982646fc68602ca7840a7b826cb49efd1963d6c (patch) | |
tree | 537932021fc6c676eda7c25f66198886eab9de5b /apps | |
parent | 79c7065433ae27932ad8b781d38b8f7832b01581 (diff) | |
download | nuttx-d982646fc68602ca7840a7b826cb49efd1963d6c.tar.gz nuttx-d982646fc68602ca7840a7b826cb49efd1963d6c.tar.bz2 nuttx-d982646fc68602ca7840a7b826cb49efd1963d6c.zip |
Fix some places in library where semaphore is not released on error conditions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5071 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/ChangeLog.txt | 3 | ||||
-rw-r--r-- | apps/netutils/webserver/httpd.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt index 1178c203c..0fe6b7947 100755 --- a/apps/ChangeLog.txt +++ b/apps/ChangeLog.txt @@ -295,3 +295,6 @@ configuration variable CONFIG_USER_ENTRYPOINT that may be used to change the default entry from user_start to some other symbol. Contributed by Kate. + * apps/netutils/webserver/httpd/c: Fix a typo that as introduced in + version r4402: 'lese' instead of 'else' (Noted by Max Holtzberg). + diff --git a/apps/netutils/webserver/httpd.c b/apps/netutils/webserver/httpd.c index 0d8386bc5..434cfec5a 100644 --- a/apps/netutils/webserver/httpd.c +++ b/apps/netutils/webserver/httpd.c @@ -380,7 +380,7 @@ static inline int httpd_cmd(struct httpd_state *pstate) ndbg("[%d] recv failed: %d\n", pstate->ht_sockfd, errno); return ERROR; } - lese if (recvlen == 0) + else if (recvlen == 0) { ndbg("[%d] connection lost\n", pstate->ht_sockfd); return ERROR; |