aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index ef20a06e8c..5915045bc7 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -159,7 +159,7 @@ smtp_connect (CamelService *service, CamelException *ex)
/* get the localaddr - needed later by smtp_helo */
addrlen = sizeof(localaddr);
- getsockname(sock, (struct sockaddr*)&localaddr, &addrlen);
+ getsockname(fd, (struct sockaddr*)&localaddr, &addrlen);
transport->ostream = camel_stream_fs_new_with_fd (fd);
transport->istream = camel_stream_buffer_new (transport->ostream,