From 2179753882d33f37e557d8cdbdd45439f4726e28 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 20 Jan 2010 15:50:18 +0000 Subject: [PATCH] Session SMTP data is null. WTF? We will crash now. --- citadel/modules/smtp/serv_smtp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index 8f51a8dbe..62ccafe2e 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -854,6 +854,10 @@ void smtp_command_loop(void) { char cmdbuf[SIZ]; citsmtp *sSMTP = SMTP; + if (sSMTP == NULL) { + CtdlLogPrintf(CTDL_EMERG, "Session SMTP data is null. WTF? We will crash now.\n"); + } + time(&CC->lastcmd); memset(cmdbuf, 0, sizeof cmdbuf); /* Clear it, just in case */ if (client_getln(cmdbuf, sizeof cmdbuf) < 1) { -- 2.30.2