projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ccc13d
)
coverity 156864 fuzxy close socket if connect fails
author
Andy Green
<andy.green@linaro.org>
Tue, 19 Jan 2016 13:44:20 +0000
(21:44 +0800)
committer
Andy Green
<andy.green@linaro.org>
Tue, 19 Jan 2016 13:44:20 +0000
(21:44 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/fuzxy.c
patch
|
blob
|
history
diff --git
a/test-server/fuzxy.c
b/test-server/fuzxy.c
index
262f88e
..
c319086
100644
(file)
--- a/
test-server/fuzxy.c
+++ b/
test-server/fuzxy.c
@@
-452,6
+452,7
@@
handle_accept(int n)
if (connect(sockfd, (struct sockaddr *)&serv_addr4,
sizeof(struct sockaddr)) == -1 ||
errno == EISCONN) {
+ close(sockfd);
lwsl_err("proxied onward connection failed\n");
return 1;
}