* Minor fix for previous checkin
[citadel.git] / webcit / crypto.c
index 6c270ad5b75bad57bd667163778014946933b27b..e4196717f992b115b2bd475883deca548fad5315 100644 (file)
@@ -542,7 +542,7 @@ int client_read_ssl(char *buf, int bytes, int timeout)
                        lprintf(9, "SSL_read got error %ld\n", errval);
                        endtls();
                        return (client_read_to
-                               (&buf[len], bytes - len, timeout));
+                               (WC->http_sock, &buf[len], bytes - len, timeout));
                }
                len += rlen;
        }