Hm... Just tried compiling with that patch in there for 4.09 on 4.11... ;)
Of course, it ran into a problem... Seems that it doesn't know what fds is
anymore. :D
Looks like the patch for 4.11 SHOULD look like this now (not 100% sure, but
it worked for me)...:
--- stunnel-4.11/src/client.c 2005-07-02 02:55:58.000000000 -0400
+++ stunnel-4.11-fixed/src/client.c 2005-07-11 17:13:12.678738896 -0400
@@ -402,10 +402,18 @@
s_poll_add(&c->fds, c->ssl_wfd->fd, 0, 1);
/****************************** wait for an event */
+ if(c->fds.nfds)
+ {
err=s_poll_wait(&c->fds, (sock_rd && ssl_rd) /* both peers open */
||
c->ssl_ptr /* data buffered to write to socket */ ||
c->sock_ptr /* data buffered to write to SSL */ ?
c->opt->timeout_idle : c->opt->timeout_close);
+ }
+ else
+ {
+ err = 0;
+ }
+
switch(err) {
case -1:
sockerror("transfer: s_poll_wait");
:)
Dave
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page