Please type "openssl version" and let us know what it prints. I have version 1.0.2l, which has this in include/openssl/bio.h:
#define BIO_get_conn_ip(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2) Contrast with the latest OpenSSL which has: typedef union bio_addr_st BIO_ADDR; #define BIO_get_conn_address(b) ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2)) And in openssl/crypto/bio/bio_lcl.h: union bio_addr_st { struct sockaddr sa; #ifdef AF_INET6 struct sockaddr_in6 s_in6; #endif struct sockaddr_in s_in; #ifdef AF_UNIX struct sockaddr_un s_un; #endif }; For more information on this change, see: https://github.com/openssl/openssl/commit/28a0841bf58e3813b2e07ad22f19484308e2f70a My suspicion is you're getting an IPv6 address in a sockaddr_in6 whereas Fossil is hardwired for IPv4. On Sat, Sep 16, 2017 at 1:26 PM, John Found <johnfo...@asm32.info> wrote: > On Sat, 16 Sep 2017 13:16:20 -0500 > Andy Goth <andrew.m.g...@gmail.com> wrote: > > > Do you have the same problem when you run a freshly compiled-from-scratch > > Fossil binary? We want to confirm you don't somehow have old object files > > linked in. > > > > Yes. Checked twice. The fossil repository updated. "make clean", "fossil > clean", > "./configure", "make". > > $fossil version > This is fossil version 2.4 [e6f64f5eeb] 2017-09-08 04:05:39 UTC > > > Notice that the problem is only with *one* of my repositories. > > > > On Sat, Sep 16, 2017 at 1:04 PM, John Found <johnfo...@asm32.info> > wrote: > > > > > On Sat, 16 Sep 2017 12:16:54 -0500 > > > Andy Goth <andrew.m.g...@gmail.com> wrote: > > > > > > > The value of *ip will be 2. Instead try "p *ip@4" which will print > four > > > > bytes, which will be 2, 0, 1, and 187. > > > > > > (gdb) p *ip@4 > > > $5 = "\002\000\001\273" > > > (gdb) continue > > > Sync done, sent: 1929 received: 0 ip: 2.0.1.187 > > > > > > > > > > > The issue appears to be somewhere within BIO_ptr_ctrl(). > > > > > > > > On Sat, Sep 16, 2017 at 12:10 PM, Andy Bradford < > > > amb-fos...@bradfords.org> > > > > wrote: > > > > > > > > > Thus said Andy Bradford on Sat, 16 Sep 2017 11:09:18 -0600: > > > > > > > > > > > It might be useful here to also: > > > > > > > > > > > > print *p > > > > > > > > > > Of course, I meant *ip > > > > > > > > > > Andy > > > > > -- > > > > > TAI64 timestamp: 4000000059bd5b14 > > > > > > > > > > > > > > > _______________________________________________ > > > > > fossil-users mailing list > > > > > fossil-users@lists.fossil-scm.org > > > > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/ > fossil-users > > > > > > > > > > > > > > > > > > > > > -- > > > > Andy Goth | <andrew.m.goth/at/gmail/dot/com> > > > > > > > > > -- > > > http://fresh.flatassembler.net > > > http://asm32.info > > > John Found <johnfo...@asm32.info> > > > _______________________________________________ > > > fossil-users mailing list > > > fossil-users@lists.fossil-scm.org > > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > > > > > > > > > > -- > > Andy Goth | <andrew.m.goth/at/gmail/dot/com> > > > -- > http://fresh.flatassembler.net > http://asm32.info > John Found <johnfo...@asm32.info> > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- Andy Goth | <andrew.m.goth/at/gmail/dot/com>
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users