SMTP-Server: Assert with backtrace instead of running in a null pointer situation...
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 25 May 2012 13:19:39 +0000 (15:19 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 25 May 2012 13:19:39 +0000 (15:19 +0200)
citadel/modules/smtp/serv_smtp.c

index a7e69451ad6820e898dda3c88737a476f0c57e5f..0219659b936993ae87199b7a68cd4dbf8b74c9eb 100644 (file)
@@ -831,6 +831,7 @@ void smtp_command_loop(void) {
 
        if (sSMTP == NULL) {
                syslog(LOG_EMERG, "Session SMTP data is null.  WTF?  We will crash now.\n");
+               return cit_panic_backtrace (0);
        }
 
        time(&CC->lastcmd);