From c77cf0e4ff2b36f4ad632d763792d4ce209860b4 Mon Sep 17 00:00:00 2001 From: Daniel Brockman Date: Mon, 23 Jan 2012 04:53:23 +0100 Subject: [PATCH] Fix bug in Client.prototype.smtpAUTH. --- lib/smtp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/smtp.js b/lib/smtp.js index 4d88fb9..67b0050 100644 --- a/lib/smtp.js +++ b/lib/smtp.js @@ -243,7 +243,8 @@ Client.prototype.setLogin = function(username, password) { }; Client.prototype.smtpAUTH = function(next, mechanisms) { - var names = mechanisms.toUpperCase().split(/\s+/), + var self = this, + names = mechanisms.toUpperCase().split(/\s+/), method; if (!this.username)