From 0cff78bbcc360d7bf12333d8e944b0440a95c6cf Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 22 Jul 2007 08:01:40 +0000
Subject: [PATCH] Bug-fix: in the error reporting for MX-record lookup when
 using an auto-detected DNS server IP address, the DNS server address was
 blank in the error log message.

---
 src/sbbs3/mailsrvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c
index 40cb007b31..ee90347563 100644
--- a/src/sbbs3/mailsrvr.c
+++ b/src/sbbs3/mailsrvr.c
@@ -3727,7 +3727,7 @@ static void sendmail_thread(void* arg)
 							,TIMEOUT_THREAD_WAIT/2))!=0) {
 							remove_msg_intransit(&smb,&msg);
 							lprintf(LOG_WARNING,"0000 !SEND ERROR %d obtaining MX records for %s from %s"
-								,i,p,startup->dns_server);
+								,i,p,dns_server);
 							SAFEPRINTF2(err,"Error %d obtaining MX record for %s",i,p);
 							bounce(&smb,&msg,err,FALSE);
 							continue;
-- 
GitLab