aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/smtp/mxdial.c
diff options
context:
space:
mode:
authorRichard Miller <millerresearch@gmail.com>2011-08-31 07:40:10 -0400
committerRuss Cox <rsc@swtch.com>2011-08-31 07:40:10 -0400
commit4a8214b1ecfbd64e83491c580dc53941c7285591 (patch)
tree367029979e71b196b7c92313de655fee6db1a9a7 /src/cmd/upas/smtp/mxdial.c
parent86ce4cedbf92c32ae857b9c193bc50c1c1070866 (diff)
downloadplan9port-4a8214b1ecfbd64e83491c580dc53941c7285591.tar.gz
plan9port-4a8214b1ecfbd64e83491c580dc53941c7285591.tar.bz2
plan9port-4a8214b1ecfbd64e83491c580dc53941c7285591.zip
upas/smtp: fixes for authenticated connections
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4967049
Diffstat (limited to 'src/cmd/upas/smtp/mxdial.c')
-rw-r--r--src/cmd/upas/smtp/mxdial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/upas/smtp/mxdial.c b/src/cmd/upas/smtp/mxdial.c
index 60dfac5f..f3a2a209 100644
--- a/src/cmd/upas/smtp/mxdial.c
+++ b/src/cmd/upas/smtp/mxdial.c
@@ -124,6 +124,7 @@ mxlookup(DS *ds, char *domain)
int i, n, nmx;
Ndbtuple *t, *tmx, *tpref, *tip;
+ strcpy(domain, ds->host);
ds->netdir = "/net";
nmx = 0;
if((t = dnsquery(nil, ds->host, "mx")) != nil){