aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-06-29 13:33:41 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-06-29 13:33:41 +0000
commit085e3052b8b10a8883b367ee5c0e16fd866db431 (patch)
treed164fd596523b0f650b66e71c6de260d327fb7a2
parentcf093e42db1ba1d4cae829dc4448742f0f1fb37a (diff)
downloadports-085e3052b8b10a8883b367ee5c0e16fd866db431.tar.gz
ports-085e3052b8b10a8883b367ee5c0e16fd866db431.zip
Notes
-rw-r--r--mail/esmtp/Makefile2
-rw-r--r--mail/esmtp/files/patch-smtp.c33
2 files changed, 34 insertions, 1 deletions
diff --git a/mail/esmtp/Makefile b/mail/esmtp/Makefile
index bece41f42ae3..9f6027633e69 100644
--- a/mail/esmtp/Makefile
+++ b/mail/esmtp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= esmtp
PORTVERSION= 0.5.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/mail/esmtp/files/patch-smtp.c b/mail/esmtp/files/patch-smtp.c
new file mode 100644
index 000000000000..6c6334512041
--- /dev/null
+++ b/mail/esmtp/files/patch-smtp.c
@@ -0,0 +1,33 @@
+
+$FreeBSD$
+
+--- smtp.c.orig Fri Nov 7 12:47:16 2003
++++ smtp.c Tue Jun 29 15:27:29 2004
+@@ -426,9 +426,14 @@
+ goto failure;
+
+ /* Do what's needed at application level to use authentication. */
+- authctx = auth_create_context ();
+- auth_set_mechanism_flags (authctx, AUTH_PLUGIN_PLAIN, 0);
+- auth_set_interact_cb (authctx, authinteract, identity);
++ if(identity->user || identity->pass)
++ {
++ authctx = auth_create_context ();
++ auth_set_mechanism_flags (authctx, AUTH_PLUGIN_PLAIN, 0);
++ auth_set_interact_cb (authctx, authinteract, identity);
++ }
++ else
++ authctx = NULL;
+
+ /* Use our callback for X.509 certificate passwords. If STARTTLS is not in
+ * use or disabled in configure, the following is harmless.
+@@ -560,7 +565,8 @@
+ fputc('\n', log_fp);
+
+ smtp_destroy_session (session);
+- auth_destroy_context (authctx);
++ if(authctx)
++ auth_destroy_context (authctx);
+ auth_client_exit ();
+
+ return;