summaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-25 17:23:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-26 10:12:59 +0100
commit7173fe98ba153c6b148bbbf98c08a7ae5ce69f60 (patch)
tree23e7e553be9d1f16b96ba593ae42358b506266ae /lib/smtp.c
parent1dc8aa870e879d3b2ff0334cdb11842d6321d61f (diff)
downloadcurl-7173fe98ba153c6b148bbbf98c08a7ae5ce69f60.tar.gz
pingpong: remove the 'conn' struct member
... as it's superfluous now when Curl_easy is passed in and we can derive the connection from that instead and avoid the duplicate copy. Closes #6525
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 99a7d9387..1fc880065 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1299,8 +1299,7 @@ static CURLcode smtp_init(struct Curl_easy *data)
static int smtp_getsock(struct Curl_easy *data,
struct connectdata *conn, curl_socket_t *socks)
{
- (void)data;
- return Curl_pp_getsock(&conn->proto.smtpc.pp, socks);
+ return Curl_pp_getsock(data, &conn->proto.smtpc.pp, socks);
}
/***********************************************************************