summaryrefslogtreecommitdiff
path: root/src/src/smtp_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/src/smtp_out.c')
-rw-r--r--src/src/smtp_out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/smtp_out.c b/src/src/smtp_out.c
index c4c409677..d6dfba52e 100644
--- a/src/src/smtp_out.c
+++ b/src/src/smtp_out.c
@@ -425,7 +425,7 @@ if (ob->socks_proxy)
{
int sock = socks_sock_connect(sc->host, sc->host_af, port, sc->interface,
sc->tblock, ob->connect_timeout);
-
+
if (sock >= 0)
{
if (early_data && early_data->data && early_data->len)
@@ -643,7 +643,7 @@ Arguments:
timelimit deadline for reading the lime, seconds past epoch
Returns: length of a line that has been put in the buffer
- -1 otherwise, with errno set
+ -1 otherwise, with errno set, and inblock->ptr adjusted
*/
static int
@@ -684,6 +684,7 @@ for (;;)
{
*p = 0; /* Leave malformed line for error message */
errno = ERRNO_SMTPFORMAT;
+ inblock->ptr = ptr;
return -1;
}
}