projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1295cd
)
Coverity: Negative returns: CID 91
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 20 Jan 2012 03:43:57 +0000
(22:43 -0500)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 20 Jan 2012 03:43:57 +0000
(22:43 -0500)
* lib-src/gnuserv.c (handle_unix_request): Handle error in
accept...
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/gnuserv.c
patch
|
blob
|
history
diff --git
a/lib-src/gnuserv.c
b/lib-src/gnuserv.c
index
be45a61
..
3c6d126
100644
(file)
--- a/
lib-src/gnuserv.c
+++ b/
lib-src/gnuserv.c
@@
-787,6
+787,8
@@
handle_unix_request(int ls)
if ((s = accept(ls, (struct sockaddr *)&server, &len)) < 0) {
perror(progname);
fprintf(stderr, "%s: unable to accept\n", progname);
+ /* Nothing more we can do here... */
+ return;
}
echo_request(s);
return;