aboutsummaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2012-01-26 16:39:53 +0100
committerPierre Joye <pierre.php@gmail.com>2012-01-26 16:39:53 +0100
commit8ee2576b6fcc8aee0c768255a55e255a1868b609 (patch)
tree41dbe761ce20a76f3168257800bba199ed77ec47 /lib/smtp.c
parent575f3c30ed60aafddbaeeb26745cca942fb9ee2f (diff)
parentcf9fb08ca4537d76afde44daf1e92307fe2882d3 (diff)
Merge branch 'master' of github.com:bagder/curl
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 4cb25efca..553c697d0 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1244,7 +1244,6 @@ static CURLcode smtp_connect(struct connectdata *conn,
struct SessionHandle *data = conn->data;
struct pingpong *pp = &smtpc->pp;
const char *path = conn->data->state.path;
- int len;
char localhost[HOSTNAME_MAX + 1];
*done = FALSE; /* default to not done yet */
@@ -1316,9 +1315,9 @@ static CURLcode smtp_connect(struct connectdata *conn,
}
/* url decode the path and use it as domain with EHLO */
- smtpc->domain = curl_easy_unescape(conn->data, path, 0, &len);
- if(!smtpc->domain)
- return CURLE_OUT_OF_MEMORY;
+ result = Curl_urldecode(conn->data, path, 0, &smtpc->domain, NULL, TRUE);
+ if(result)
+ return result;
/* When we connect, we start in the state where we await the server greeting
*/