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
This commit is contained in:
parent
02eb94cd00
commit
1a017b411e
@ -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).
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user