search for: num_listen_sock

Displaying 4 results from an estimated 4 matches for "num_listen_sock".

Did you mean: num_listen_socks
2008 Dec 19
2
Using realloc to remove MAX_LISTEN_SOCKS limit on sshd.c
OpenSSH developers, I have removed the fixed, arbitrary limit on the number of ListenAddress allowed by using realloc to dynamically expand listen_socks as needed. This completely removes MAX_LISTEN_SOCKS from the source. I made this change on the version of OpenSSH shipped with CentOS 5.2, version 4.3p2. Please see the attached .c file and .diff file. Please add these changes to OpenSSH
2001 Jun 22
1
PATCH: pidfile/sigterm race
...installed, since the pidfile is written out before the signal handlers are setup. The solution is to simply write the pidfile after the signal handlers are setup. Here's the patch. Rob --- sshd.c.orig Fri Jun 22 11:16:41 2001 +++ sshd.c Fri Jun 22 11:18:32 2001 @@ -857,6 +857,19 @@ if (!num_listen_socks) fatal("Cannot bind any address."); + if (options.protocol & SSH_PROTO_1) + generate_ephemeral_server_key(); + + /* Arrange to restart on SIGHUP. The handler needs listen_sock. */ + signal(SIGHUP, sighup_handler); + + signal(SIGTERM, sigterm_handler); + signal(SIGQUIT,...
2000 Aug 24
0
patch for a few things
...FILE *f; struct linger linger; struct addrinfo *ai; *************** *** 753,758 **** --- 769,777 ---- } freeaddrinfo(options.listen_addrs); + #ifdef USE_PAM + log("Using PAM authentication service \"%s\".", SSHD_PAM_SERVICE); + #endif /* USE_PAM */ if (!num_listen_socks) fatal("Cannot bind any address."); *************** *** 975,980 **** --- 994,1000 ---- remote_port = get_remote_port(); remote_ip = get_remote_ipaddr(); + remote_hostname = get_canonical_hostname(); /* Check whether logins are denied from this host. */ #ifdef LIBWR...
2018 Dec 10
2
[PATCH] cleanup of global variables server/client_version_string in sshconnect.c
In sshconnect.c there are two global variables for server_version_string client_version_string. These are used just in a few functions and can easily be passed as parameters. Also, there is a strange construct, where their memory is allocated to the global pointers, then copies of these pointers are assigned to the kex structure. The kex_free finally frees them via cleanup of the kex