The attached patch should fix this issue. -- Matthias Andree
Index: socket.c =================================================================== --- socket.c (Revision 4993) +++ socket.c (Revision 4994) @@ -942,7 +942,7 @@ if( !mycert ) mycert = mykey; - if (SSLCertGetCN(mycert, buffer, sizeof(buffer))) { + if ((!*remotename || !**remotename) && SSLCertGetCN(mycert, buffer, sizeof(buffer))) { free(*remotename); *remotename = xstrdup(buffer); }
pgp1iSTBQZE2I.pgp
Description: PGP signature