[Bug 41679] New: netconn_secure_connect: Add calling TRACE, add sock_send retcode to 'send failed' message

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 7 18:23:53 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=41679

            Bug ID: 41679
           Summary: netconn_secure_connect: Add calling TRACE, add
                    sock_send retcode to 'send failed' message
           Product: Wine
           Version: 1.9.22
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: winhttp
          Assignee: wine-bugs at winehq.org
          Reporter: brewmanz at gmail.com
      Distribution: ---

I've been playing around with winhttp, and offering following debugging aid ...

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 7213dd9..82bd110 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -393,6 +393,7 @@

 BOOL netconn_secure_connect( netconn_t *conn, WCHAR *hostname )
 {
+    TRACE("%p %s\n", conn, debugstr_w(hostname));
     SecBuffer out_buf = {0, SECBUFFER_TOKEN, NULL}, in_bufs[2] = {{0,
SECBUFFER_TOKEN}, {0, SECBUFFER_EMPTY}};
     SecBufferDesc out_desc = {SECBUFFER_VERSION, 1, &out_buf}, in_desc =
{SECBUFFER_VERSION, 2, in_bufs};
     BYTE *read_buf;
@@ -427,7 +428,7 @@

             size = sock_send(conn->socket, out_buf.pvBuffer, out_buf.cbBuffer,
0);
             if(size != out_buf.cbBuffer) {
-                ERR("send failed\n");
+                ERR("send failed: %d!=%d: hostname=%s\n", size,
out_buf.cbBuffer, debugstr_w(hostname));
                 res = ERROR_WINHTTP_SECURE_CHANNEL_ERROR;
                 break;
             }

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list