|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/channels.c.coverity openssh-6.8p1/channels.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/channels.c.coverity 2015-03-18 17:21:51.815265002 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/channels.c 2015-03-18 17:21:51.896264833 +0100
|
|
Jakub Jelen |
132f8f |
@@ -243,11 +243,11 @@ channel_register_fds(Channel *c, int rfd
|
|
Jan F. Chadima |
3b545b |
channel_max_fd = MAX(channel_max_fd, wfd);
|
|
Jan F. Chadima |
3b545b |
channel_max_fd = MAX(channel_max_fd, efd);
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
- if (rfd != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (rfd >= 0)
|
|
Jan F. Chadima |
3b545b |
fcntl(rfd, F_SETFD, FD_CLOEXEC);
|
|
Jan F. Chadima |
3b545b |
- if (wfd != -1 && wfd != rfd)
|
|
Jan F. Chadima |
3b545b |
+ if (wfd >= 0 && wfd != rfd)
|
|
Jan F. Chadima |
3b545b |
fcntl(wfd, F_SETFD, FD_CLOEXEC);
|
|
Jan F. Chadima |
3b545b |
- if (efd != -1 && efd != rfd && efd != wfd)
|
|
Jan F. Chadima |
3b545b |
+ if (efd >= 0 && efd != rfd && efd != wfd)
|
|
Jan F. Chadima |
3b545b |
fcntl(efd, F_SETFD, FD_CLOEXEC);
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
c->rfd = rfd;
|
|
Jakub Jelen |
132f8f |
@@ -265,11 +265,11 @@ channel_register_fds(Channel *c, int rfd
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
/* enable nonblocking mode */
|
|
Jan F. Chadima |
3b545b |
if (nonblock) {
|
|
Jan F. Chadima |
3b545b |
- if (rfd != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (rfd >= 0)
|
|
Jan F. Chadima |
3b545b |
set_nonblock(rfd);
|
|
Jan F. Chadima |
3b545b |
- if (wfd != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (wfd >= 0)
|
|
Jan F. Chadima |
3b545b |
set_nonblock(wfd);
|
|
Jan F. Chadima |
3b545b |
- if (efd != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (efd >= 0)
|
|
Jan F. Chadima |
3b545b |
set_nonblock(efd);
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/monitor.c.coverity openssh-6.8p1/monitor.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/monitor.c.coverity 2015-03-18 17:21:51.887264852 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/monitor.c 2015-03-18 17:21:51.897264831 +0100
|
|
Jakub Jelen |
132f8f |
@@ -444,7 +444,7 @@ monitor_child_preauth(Authctxt *_authctx
|
|
Petr Lautrbach |
8a29de |
mm_get_keystate(pmonitor);
|
|
Jan F. Chadima |
cff1d0 |
|
|
Jan F. Chadima |
cff1d0 |
/* Drain any buffered messages from the child */
|
|
Jan F. Chadima |
cff1d0 |
- while (pmonitor->m_log_recvfd != -1 && monitor_read_log(pmonitor) == 0)
|
|
Jan F. Chadima |
cff1d0 |
+ while (pmonitor->m_log_recvfd >= 0 && monitor_read_log(pmonitor) == 0)
|
|
Jan F. Chadima |
cff1d0 |
;
|
|
Jan F. Chadima |
cff1d0 |
|
|
Petr Lautrbach |
8a29de |
close(pmonitor->m_sendfd);
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/monitor_wrap.c.coverity openssh-6.8p1/monitor_wrap.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/monitor_wrap.c.coverity 2015-03-18 17:21:51.888264849 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/monitor_wrap.c 2015-03-18 17:21:51.897264831 +0100
|
|
Jakub Jelen |
132f8f |
@@ -533,10 +533,10 @@ mm_pty_allocate(int *ptyfd, int *ttyfd,
|
|
Jan F. Chadima |
cff1d0 |
if ((tmp1 = dup(pmonitor->m_recvfd)) == -1 ||
|
|
Jan F. Chadima |
cff1d0 |
(tmp2 = dup(pmonitor->m_recvfd)) == -1) {
|
|
Jan F. Chadima |
cff1d0 |
error("%s: cannot allocate fds for pty", __func__);
|
|
Jan F. Chadima |
cff1d0 |
- if (tmp1 > 0)
|
|
Jan F. Chadima |
cff1d0 |
+ if (tmp1 >= 0)
|
|
Jan F. Chadima |
cff1d0 |
close(tmp1);
|
|
Jan F. Chadima |
cff1d0 |
- if (tmp2 > 0)
|
|
Jan F. Chadima |
cff1d0 |
- close(tmp2);
|
|
Jan F. Chadima |
cff1d0 |
+ /*DEAD CODE if (tmp2 >= 0)
|
|
Jan F. Chadima |
cff1d0 |
+ close(tmp2);*/
|
|
Jan F. Chadima |
cff1d0 |
return 0;
|
|
Jan F. Chadima |
cff1d0 |
}
|
|
Jan F. Chadima |
cff1d0 |
close(tmp1);
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/openbsd-compat/bindresvport.c.coverity openssh-6.8p1/openbsd-compat/bindresvport.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/openbsd-compat/bindresvport.c.coverity 2015-03-17 06:49:20.000000000 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/openbsd-compat/bindresvport.c 2015-03-18 17:21:51.897264831 +0100
|
|
Jakub Jelen |
132f8f |
@@ -58,7 +58,7 @@ bindresvport_sa(int sd, struct sockaddr
|
|
Jan F. Chadima |
ea97ff |
struct sockaddr_in6 *in6;
|
|
Jan F. Chadima |
ea97ff |
u_int16_t *portp;
|
|
Jan F. Chadima |
ea97ff |
u_int16_t port;
|
|
Jan F. Chadima |
ea97ff |
- socklen_t salen;
|
|
Jan F. Chadima |
ea97ff |
+ socklen_t salen = sizeof(struct sockaddr_storage);
|
|
Jan F. Chadima |
ea97ff |
int i;
|
|
Jan F. Chadima |
ea97ff |
|
|
Jan F. Chadima |
ea97ff |
if (sa == NULL) {
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/scp.c.coverity openssh-6.8p1/scp.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/scp.c.coverity 2015-03-18 17:21:51.868264891 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/scp.c 2015-03-18 17:21:58.281251460 +0100
|
|
Jakub Jelen |
132f8f |
@@ -156,7 +156,7 @@ killchild(int signo)
|
|
Jan F. Chadima |
3b545b |
{
|
|
Jan F. Chadima |
3b545b |
if (do_cmd_pid > 1) {
|
|
Jan F. Chadima |
3b545b |
kill(do_cmd_pid, signo ? signo : SIGTERM);
|
|
Jan F. Chadima |
3b545b |
- waitpid(do_cmd_pid, NULL, 0);
|
|
Jan F. Chadima |
3b545b |
+ (void) waitpid(do_cmd_pid, NULL, 0);
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
if (signo)
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/servconf.c.coverity openssh-6.8p1/servconf.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/servconf.c.coverity 2015-03-18 17:21:51.893264839 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/servconf.c 2015-03-18 17:21:58.281251460 +0100
|
|
Jakub Jelen |
132f8f |
@@ -1475,7 +1475,7 @@ process_server_config_line(ServerOptions
|
|
Jan F. Chadima |
ea97ff |
fatal("%s line %d: Missing subsystem name.",
|
|
Jan F. Chadima |
ea97ff |
filename, linenum);
|
|
Jan F. Chadima |
ea97ff |
if (!*activep) {
|
|
Jan F. Chadima |
ea97ff |
- arg = strdelim(&cp;;
|
|
Jan F. Chadima |
ea97ff |
+ /*arg =*/ (void) strdelim(&cp;;
|
|
Jan F. Chadima |
ea97ff |
break;
|
|
Jan F. Chadima |
ea97ff |
}
|
|
Jan F. Chadima |
ea97ff |
for (i = 0; i < options->num_subsystems; i++)
|
|
Jakub Jelen |
132f8f |
@@ -1566,8 +1566,9 @@ process_server_config_line(ServerOptions
|
|
Jan F. Chadima |
cff1d0 |
if (*activep && *charptr == NULL) {
|
|
Jan F. Chadima |
cff1d0 |
*charptr = tilde_expand_filename(arg, getuid());
|
|
Jan F. Chadima |
cff1d0 |
/* increase optional counter */
|
|
Jan F. Chadima |
cff1d0 |
- if (intptr != NULL)
|
|
Jan F. Chadima |
cff1d0 |
- *intptr = *intptr + 1;
|
|
Jan F. Chadima |
cff1d0 |
+ /* DEAD CODE intptr is still NULL ;)
|
|
Jan F. Chadima |
cff1d0 |
+ if (intptr != NULL)
|
|
Jan F. Chadima |
cff1d0 |
+ *intptr = *intptr + 1; */
|
|
Jan F. Chadima |
cff1d0 |
}
|
|
Jan F. Chadima |
cff1d0 |
break;
|
|
Jan F. Chadima |
cff1d0 |
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/serverloop.c.coverity openssh-6.8p1/serverloop.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/serverloop.c.coverity 2015-03-17 06:49:20.000000000 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/serverloop.c 2015-03-18 17:28:45.616436080 +0100
|
|
Jan F. Chadima |
3b545b |
@@ -147,13 +147,13 @@ notify_setup(void)
|
|
Jan F. Chadima |
3b545b |
static void
|
|
Jan F. Chadima |
3b545b |
notify_parent(void)
|
|
Jan F. Chadima |
3b545b |
{
|
|
Jan F. Chadima |
3b545b |
- if (notify_pipe[1] != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (notify_pipe[1] >= 0)
|
|
Petr Lautrbach |
84822b |
(void)write(notify_pipe[1], "", 1);
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
static void
|
|
Jan F. Chadima |
3b545b |
notify_prepare(fd_set *readset)
|
|
Jan F. Chadima |
3b545b |
{
|
|
Jan F. Chadima |
3b545b |
- if (notify_pipe[0] != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (notify_pipe[0] >= 0)
|
|
Jan F. Chadima |
3b545b |
FD_SET(notify_pipe[0], readset);
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
static void
|
|
Jan F. Chadima |
3b545b |
@@ -161,8 +161,8 @@ notify_done(fd_set *readset)
|
|
Jan F. Chadima |
3b545b |
{
|
|
Jan F. Chadima |
3b545b |
char c;
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
- if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset))
|
|
Jan F. Chadima |
3b545b |
- while (read(notify_pipe[0], &c, 1) != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (notify_pipe[0] >= 0 && FD_ISSET(notify_pipe[0], readset))
|
|
Jan F. Chadima |
3b545b |
+ while (read(notify_pipe[0], &c, 1) >= 0)
|
|
Jan F. Chadima |
3b545b |
debug2("notify_done: reading");
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
|
|
Jakub Jelen |
132f8f |
@@ -337,7 +337,7 @@ wait_until_can_do_something(fd_set **rea
|
|
Jan F. Chadima |
3b545b |
* If we have buffered data, try to write some of that data
|
|
Jan F. Chadima |
3b545b |
* to the program.
|
|
Jan F. Chadima |
3b545b |
*/
|
|
Jan F. Chadima |
3b545b |
- if (fdin != -1 && buffer_len(&stdin_buffer) > 0)
|
|
Jan F. Chadima |
3b545b |
+ if (fdin >= 0 && buffer_len(&stdin_buffer) > 0)
|
|
Jan F. Chadima |
3b545b |
FD_SET(fdin, *writesetp);
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
notify_prepare(*readsetp);
|
|
Petr Lautrbach |
44f0ac |
@@ -477,7 +477,7 @@ process_output(fd_set *writeset)
|
|
Jan F. Chadima |
3b545b |
int len;
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
/* Write buffered data to program stdin. */
|
|
Jan F. Chadima |
3b545b |
- if (!compat20 && fdin != -1 && FD_ISSET(fdin, writeset)) {
|
|
Jan F. Chadima |
3b545b |
+ if (!compat20 && fdin >= 0 && FD_ISSET(fdin, writeset)) {
|
|
Jan F. Chadima |
3b545b |
data = buffer_ptr(&stdin_buffer);
|
|
Jan F. Chadima |
3b545b |
dlen = buffer_len(&stdin_buffer);
|
|
Jan F. Chadima |
3b545b |
len = write(fdin, data, dlen);
|
|
Jakub Jelen |
132f8f |
@@ -590,7 +590,7 @@ server_loop(pid_t pid, int fdin_arg, int
|
|
Jan F. Chadima |
3b545b |
set_nonblock(fdin);
|
|
Jan F. Chadima |
3b545b |
set_nonblock(fdout);
|
|
Jan F. Chadima |
3b545b |
/* we don't have stderr for interactive terminal sessions, see below */
|
|
Jan F. Chadima |
3b545b |
- if (fderr != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (fderr >= 0)
|
|
Jan F. Chadima |
3b545b |
set_nonblock(fderr);
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
if (!(datafellows & SSH_BUG_IGNOREMSG) && isatty(fdin))
|
|
Jakub Jelen |
132f8f |
@@ -614,7 +614,7 @@ server_loop(pid_t pid, int fdin_arg, int
|
|
Jan F. Chadima |
3b545b |
max_fd = MAX(connection_in, connection_out);
|
|
Jan F. Chadima |
3b545b |
max_fd = MAX(max_fd, fdin);
|
|
Jan F. Chadima |
3b545b |
max_fd = MAX(max_fd, fdout);
|
|
Jan F. Chadima |
3b545b |
- if (fderr != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (fderr >= 0)
|
|
Jan F. Chadima |
3b545b |
max_fd = MAX(max_fd, fderr);
|
|
Jan F. Chadima |
3b545b |
#endif
|
|
Jan F. Chadima |
3b545b |
|
|
Jakub Jelen |
132f8f |
@@ -644,7 +644,7 @@ server_loop(pid_t pid, int fdin_arg, int
|
|
Jan F. Chadima |
3b545b |
* If we have received eof, and there is no more pending
|
|
Jan F. Chadima |
3b545b |
* input data, cause a real eof by closing fdin.
|
|
Jan F. Chadima |
3b545b |
*/
|
|
Jan F. Chadima |
3b545b |
- if (stdin_eof && fdin != -1 && buffer_len(&stdin_buffer) == 0) {
|
|
Jan F. Chadima |
3b545b |
+ if (stdin_eof && fdin >= 0 && buffer_len(&stdin_buffer) == 0) {
|
|
Jan F. Chadima |
3b545b |
if (fdin != fdout)
|
|
Jan F. Chadima |
3b545b |
close(fdin);
|
|
Jan F. Chadima |
3b545b |
else
|
|
Jakub Jelen |
132f8f |
@@ -740,15 +740,15 @@ server_loop(pid_t pid, int fdin_arg, int
|
|
Jan F. Chadima |
3b545b |
buffer_free(&stderr_buffer);
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
/* Close the file descriptors. */
|
|
Jan F. Chadima |
3b545b |
- if (fdout != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (fdout >= 0)
|
|
Jan F. Chadima |
3b545b |
close(fdout);
|
|
Jan F. Chadima |
3b545b |
fdout = -1;
|
|
Jan F. Chadima |
3b545b |
fdout_eof = 1;
|
|
Jan F. Chadima |
3b545b |
- if (fderr != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (fderr >= 0)
|
|
Jan F. Chadima |
3b545b |
close(fderr);
|
|
Jan F. Chadima |
3b545b |
fderr = -1;
|
|
Jan F. Chadima |
3b545b |
fderr_eof = 1;
|
|
Jan F. Chadima |
3b545b |
- if (fdin != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (fdin >= 0)
|
|
Jan F. Chadima |
3b545b |
close(fdin);
|
|
Jan F. Chadima |
3b545b |
fdin = -1;
|
|
Jan F. Chadima |
3b545b |
|
|
Jakub Jelen |
132f8f |
@@ -950,7 +950,7 @@ server_input_window_size(int type, u_int
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
debug("Window change received.");
|
|
Jan F. Chadima |
3b545b |
packet_check_eom();
|
|
Jan F. Chadima |
3b545b |
- if (fdin != -1)
|
|
Jan F. Chadima |
3b545b |
+ if (fdin >= 0)
|
|
Jan F. Chadima |
3b545b |
pty_change_window_size(fdin, row, col, xpixel, ypixel);
|
|
Jakub Jelen |
132f8f |
return 0;
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jakub Jelen |
132f8f |
@@ -1043,7 +1043,7 @@ server_request_tun(void)
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
|
|
Jan F. Chadima |
3b545b |
tun = packet_get_int();
|
|
Jan F. Chadima |
3b545b |
- if (forced_tun_device != -1) {
|
|
Jan F. Chadima |
3b545b |
+ if (forced_tun_device >= 0) {
|
|
Jan F. Chadima |
3b545b |
if (tun != SSH_TUNID_ANY && forced_tun_device != tun)
|
|
Jan F. Chadima |
3b545b |
goto done;
|
|
Jan F. Chadima |
3b545b |
tun = forced_tun_device;
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/sftp.c.coverity openssh-6.8p1/sftp.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/sftp.c.coverity 2015-03-17 06:49:20.000000000 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/sftp.c 2015-03-18 17:21:58.283251456 +0100
|
|
Jakub Jelen |
132f8f |
@@ -223,7 +223,7 @@ killchild(int signo)
|
|
Petr Lautrbach |
84822b |
{
|
|
Petr Lautrbach |
84822b |
if (sshpid > 1) {
|
|
Petr Lautrbach |
84822b |
kill(sshpid, SIGTERM);
|
|
Petr Lautrbach |
84822b |
- waitpid(sshpid, NULL, 0);
|
|
Petr Lautrbach |
84822b |
+ (void) waitpid(sshpid, NULL, 0);
|
|
Petr Lautrbach |
84822b |
}
|
|
Petr Lautrbach |
84822b |
|
|
Petr Lautrbach |
84822b |
_exit(1);
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/ssh-agent.c.coverity openssh-6.8p1/ssh-agent.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/ssh-agent.c.coverity 2015-03-17 06:49:20.000000000 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/ssh-agent.c 2015-03-18 17:21:58.284251454 +0100
|
|
Jakub Jelen |
132f8f |
@@ -1166,8 +1166,8 @@ main(int ac, char **av)
|
|
Jan F. Chadima |
ea97ff |
sanitise_stdfd();
|
|
Jan F. Chadima |
ea97ff |
|
|
Jan F. Chadima |
ea97ff |
/* drop */
|
|
Jan F. Chadima |
ea97ff |
- setegid(getgid());
|
|
Jan F. Chadima |
ea97ff |
- setgid(getgid());
|
|
Jan F. Chadima |
ea97ff |
+ (void) setegid(getgid());
|
|
Jan F. Chadima |
ea97ff |
+ (void) setgid(getgid());
|
|
Jan F. Chadima |
ea97ff |
|
|
Jakub Jelen |
5878eb |
platform_disable_tracing(0); /* strict=no */
|
|
Jakub Jelen |
5878eb |
|
|
Jakub Jelen |
132f8f |
diff -up openssh-6.8p1/sshd.c.coverity openssh-6.8p1/sshd.c
|
|
Jakub Jelen |
132f8f |
--- openssh-6.8p1/sshd.c.coverity 2015-03-18 17:21:51.893264839 +0100
|
|
Jakub Jelen |
132f8f |
+++ openssh-6.8p1/sshd.c 2015-03-18 17:21:58.284251454 +0100
|
|
Jakub Jelen |
132f8f |
@@ -778,8 +778,10 @@ privsep_preauth(Authctxt *authctxt)
|
|
Jakub Jelen |
13073f |
|
|
Jakub Jelen |
13073f |
privsep_preauth_child();
|
|
Jan F. Chadima |
cff1d0 |
setproctitle("%s", "[net]");
|
|
Jan F. Chadima |
cff1d0 |
- if (box != NULL)
|
|
Jan F. Chadima |
cff1d0 |
+ if (box != NULL) {
|
|
Jan F. Chadima |
cff1d0 |
ssh_sandbox_child(box);
|
|
Petr Lautrbach |
84822b |
+ free(box);
|
|
Jan F. Chadima |
cff1d0 |
+ }
|
|
Jan F. Chadima |
cff1d0 |
|
|
Jan F. Chadima |
cff1d0 |
return 0;
|
|
Jan F. Chadima |
cff1d0 |
}
|
|
Jakub Jelen |
132f8f |
@@ -1518,6 +1520,9 @@ server_accept_loop(int *sock_in, int *so
|
|
Jan F. Chadima |
3b545b |
if (num_listen_socks < 0)
|
|
Jan F. Chadima |
3b545b |
break;
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
+
|
|
Jan F. Chadima |
3b545b |
+ if (fdset != NULL)
|
|
Petr Lautrbach |
84822b |
+ free(fdset);
|
|
Jan F. Chadima |
3b545b |
}
|
|
Jan F. Chadima |
3b545b |
|
|
Jakub Jelen |
5878eb |
/*
|