search for: serverloop

Displaying 20 results from an estimated 193 matches for "serverloop".

2003 Feb 22
1
Patch for a port forwarding problem in serverloop.c
...annot bind to port: 5000' was written to the syslog, but the connection still persisted. I had no way on the client side to know that the listening wasn't taking place. that is, the portforwarding of port 5000 failed, but the ssh connection on port 22 was still there. I found the spot in serverloop.c, where it seemed to be ignoring the return status from the 'channel_setup_remote_fwd_listener' call. The fix for me was a simple testing of the success, and calling fatal() to indicate that the port forwarding failed. Here is the patch: --- serverloop.c.orig Sat Feb 22 11:35:39 2003 +...
2002 Jul 04
1
[PATCH]: Remove HAVE_CYGWIN in favor of NO_IPPORT_RESERVED_CONCEPT
...orms not supporting the concept of "privileged" ports only accessible by privileged users but which allow everyone to use these ports. This patch removes some Cygwin dependencies from the code. Otherwise, if this patch isn't applied, we definitely need another #ifndef HAVE_CYGWIN in serverloop.c otherwise serverside port forwarding for reserverd ports doesn't work in Cygwin's 3.4 version. The official Cygwin release of 3.4 contains that additional HAVE_CYGWIN patch so far. Corinna Index: acconfig.h =================================================================== RCS file:...
2003 Sep 15
1
SCO 3.2v4.2 and OpenSSH -current --> connection hangs and does no t close
Greetings, I have a problem with OpenSSH -current and SCO 3.2v4.2, when I execute a remote command or exit from a session, the connection hangs, ( line 326 of serverloop.c). This problem only exists when using ssh2. server side debug (-d -d -d ): debug1: Received SIGCHLD. debug2: channel 0: read failed debug2: channel 0: close_read debug2: channel 0: input open -> drain debug2: channel 0: ibuf_empty delayed efd 12/(0) debug2: notify_done: reading debug2: chann...
2001 Mar 26
1
duplicated lines in serverloop.c? (openssh252p2)
Hi, I was looking through the source, and I noticed that the following code appears twice in the file serverloop.c. Is it supposed to, and if not, would there be any ill effect? +289 +290 /* Read and buffer any available stdout data from the program. */ +291 if (!fdout_eof && FD_ISSET(fdout, readset)) { +292 len = read(fdout, buf, sizeof(buf)); +29...
2002 Apr 05
1
[Bug 100] serverloop.c modifications for correct UNICOS behavior
http://bugzilla.mindrot.org/show_bug.cgi?id=100 ------- Additional Comments From mouring at eviladmin.org 2002-04-06 06:52 ------- The following code was committed to OpenSSH to catch some SysV issue. Does this keep UNICOS happy? while ((wait_pid = waitpid(-1, &wait_status, 0)) < 0) if (errno != EINTR) packet_disconnect("wait:
2005 Nov 25
2
[Bug 1125] packet_get_int() returns -1 (serverloop.c)
http://bugzilla.mindrot.org/show_bug.cgi?id=1125 Summary: packet_get_int() returns -1 (serverloop.c) Product: Portable OpenSSH Version: 3.7.1p2 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: bitbucket at mindrot.org ReportedBy: equinox at lichts...
2001 Oct 31
2
suggested fix for the sigchld race
comments? alternatives: sigsetjmp(ugly) and pselect(not portable, available) drawback: additional filedescriptors. Index: serverloop.c =================================================================== RCS file: /home/markus/cvs/ssh/serverloop.c,v retrieving revision 1.82 diff -u -r1.82 serverloop.c --- serverloop.c 10 Oct 2001 22:18:47 -0000 1.82 +++ serverloop.c 11 Oct 2001 18:06:33 -0000 @@ -92,6 +92,45 @@ /* prototypes */...
2005 Mar 03
3
ssh hang problem under solaris 8
...problem ? Greetings Frank sshd: #0 0xff19d618 in _poll () from /usr/lib/libc.so.1 #1 0xff14d53c in select () from /usr/lib/libc.so.1 #2 0x000339a0 in wait_until_can_do_something (readsetp=0xffbee5dc, writesetp=0xffbee5d8, maxfdp=0xffbee5d4, nallocp=0xffbee5d0, max_time_milliseconds=0) at serverloop.c:325 #3 0x00034d6c in server_loop2 (authctxt=0x123ac8) at serverloop.c:776 #4 0x0003ae0c in do_authenticated (authctxt=0x123ac8) at session.c:2265 #5 0x0002ea78 in main (ac=1161216, av=0x11f288) at sshd.c:1719 ssh: (gdb) backtrace #0 0xff19d618 in _poll () #1 0xff14d53c in _select () #2 0x3...
2002 Feb 04
0
[Bug 100] serverloop.c modifications for correct UNICOS behavior
http://bugzilla.mindrot.org/show_bug.cgi?id=100 ------- Additional Comments From markus at openbsd.org 2002-02-05 06:46 ------- hm, why can't you do while(waitpid) ? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2002 Mar 27
0
[Bug 193] New: sshd: error: select: Bad file number
...in 2 places: in sshd.c/line 997 (Openssh 3.1p1 release) after generating a new RSA Key: Mar 26 17:53:05 csfauth2 sshd[1474]: Generating new 768 bit RSA key. Mar 26 17:53:06 csfauth2 sshd[1474]: RSA key generation complete. Mar 26 17:53:06 csfauth2 sshd[1474]: error: select: Bad file number in the serverloop.c - wait_until_can_do_something() most of the time some messages just after session start, some during the session, and most of the time after closing the sessin Mar 26 15:44:17 csfauth2 sshd[824]: Accepted publickey for root from 10.70.79.92 port 3427 ssh2 Mar 26 15:45:59 csfauth2 sshd[824]: deb...
2002 Jul 22
0
[Bug 100] serverloop.c modifications for correct UNICOS behavior
http://bugzilla.mindrot.org/show_bug.cgi?id=100 wendyp at cray.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From wendyp at cray.com 2002-07-23 08:41
2006 May 15
0
[PATCH 6/12] bug fix: openssh-4.3p2 memory leak
...packet_get_string and used in the call to channel_cancel_rport_listener and then it goes out of scope. This patch adds the xfree. This entire set of patches passed the regression tests on my system. Resource leak bug found by Coverity. Signed-off-by: Kylene Hall <kjhall at us.ibm.com> --- serverloop.c | 1 + 1 files changed, 1 insertion(+) diff -uprN openssh-4.3p2/serverloop.c openssh-4.3p2-kylie/serverloop.c --- openssh-4.3p2/serverloop.c 2005-12-30 23:33:37.000000000 -0600 +++ openssh-4.3p2-kylie/serverloop.c 2006-05-03 16:52:06.000000000 -0500 @@ -1085,6 +1085,7 @@ server_input_global_r...
2012 Dec 04
2
OpenSSH warnings on FreeBSD
on FreeBSD, gcc complains that %d is used for sig_atomic_t Casting to (int) as a solution ? Index: serverloop.c =================================================================== RCS file: /cvs/openssh/serverloop.c,v retrieving revision 1.172 diff -u -p -r1.172 serverloop.c --- serverloop.c 2 Dec 2012 22:50:55 -0000 1.172 +++ serverloop.c 4 Dec 2012 11:46:33 -0000 @@ -708,7 +708,7 @@ server_loop(pid_t pid...
2001 Jul 26
1
Tru64 Unix vs. OpenSSH 2.9p2
...to that pty. The problem can be reproduced by connecting to the localhost host via ssh using protocol version 2, and then killing the ssh client with a SIGKILL. The sshd server notices the connection closing and exits, but does not update /etc/utmp. I believe the problem is in server_loop2() in serverloop.c. When the ssh connection is terminated abruptly, one falls out of the input processing loop and tries to clean up. There is a loop that "wait"s for child processes to die, and terminates the associated sessions. Unfortuately, the "wait" uses the WNOHANG flag, so any session...
2001 Jul 22
2
Patches for Cray T3Es running Unicossmk and SV1s running Unicos
...a infinite signal loop if the sigchld handler does not reap the child win it is called if it reset the sigchld handler, it is a cray thing. 5) It is possible to get an EINTR on a waitpid call on a cray, it has to do with the job termination signal. Loop on waitpid if errno is EINTR in serverloop.c 6) Cray gets pty differently so getpty.c has a few more levels of ifdef's, sigh. 7) Add some more cray specific prng commands. Needed more entropy! Let me know if you have any questions or need any changes to this set of patches. This is the third posting. I think the others went into...
2001 Jul 04
0
Sneek peak at what was commited.
...ocard stuff. I will not assure it will compile on any platform in its' current form. =) 20010704 - OpenBSD CVS Sync - markus at cvs.openbsd.org 2001/06/25 08:25:41 [channels.c channels.h cipher.c clientloop.c compat.c compat.h hostfile.c kex.c kex.h key.c key.h nchan.c packet.c serverloop.c session.c session.h sftp-server.c ssh-add.c ssh-agent.c uuencode.h] update copyright for 2001 - markus at cvs.openbsd.org 2001/06/25 17:18:27 [ssh-keygen.1] sshd(8) will never read the private keys, but ssh(1) does; hugh at mimosa.com - provos at cvs.openbsd.org 20...
2007 Jan 16
11
[Bug 52] ssh hangs on exit
http://bugzilla.mindrot.org/show_bug.cgi?id=52 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |1274 nThis| | ------- You are receiving this mail because: ------- You are the assignee for
2001 Aug 16
4
Idletimeout patch
...pam_authentication_via_kbd_int; + int idletimeout; /* + * If nonzero, the number of second + * after which idle connections + * will be terminated */ } ServerOptions; /* * Initializes the server options to special values that indicate that they diff -ru openssh-2.9p2.orig/serverloop.c openssh-2.9p2/serverloop.c --- openssh-2.9p2.orig/serverloop.c Sat Apr 14 02:28:03 2001 +++ openssh-2.9p2/serverloop.c Thu Aug 16 14:12:14 2001 @@ -79,7 +79,8 @@ static int connection_out; /* Connection to client (output). */ static int connection_closed = 0; /* Connection to client closed. */...
2006 Apr 22
2
bug & patch in ServerAliveInterval (openssh 4.3-p2)
Hi openssh-unix-dev subscribers :) I have found that ServerAliveInterval & ServerAliveCountMax have some bug. Basically the ssh-alive check function (that verify the peer is alive) is called only if no data at all gets into ssh (when it should work only for server channel).I am pretty sure developers know about this ..anyway I have tried to fix this issue. Here is the patch: diff -rNu
2003 Sep 17
3
[Bug 651] SCO 3.2v4.2 and OpenSSH 3.7.1p1 --> connection hangs and does not close (ssh2 only)
...if (ret == -1) { 329 memset(*readsetp, 0, *nallocp); 330 memset(*writesetp, 0, *nallocp); (gdb) bt #0 wait_until_can_do_something (readsetp=0x7ffff8d8, writesetp=0x7ffff8d4, maxfdp=0x7ffff8d0, nallocp=0x7ffff8cc, max_time_milliseconds=0) at serverloop.c:326 #1 0x8bfc in server_loop2 (authctxt=0x42eaf8) at serverloop.c:770 #2 0x104bb in do_authenticated2 (authctxt=0x42eaf8) at session.c:2152 #3 0xcc19 in do_authenticated (authctxt=0x42eaf8) at session.c:216 #4 0x2eaa in main (ac=6, av=0x7ffffe1c) at sshd.c:1506 (gdb) s I have no idea how to...