projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fde3a9
)
Session SMTP data is null. WTF? We will crash now.
author
Art Cancro
<ajc@citadel.org>
Wed, 20 Jan 2010 15:50:18 +0000
(15:50 +0000)
committer
Art Cancro
<ajc@citadel.org>
Wed, 20 Jan 2010 15:50:18 +0000
(15:50 +0000)
citadel/modules/smtp/serv_smtp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/smtp/serv_smtp.c
b/citadel/modules/smtp/serv_smtp.c
index 8f51a8dbe66994986a7036a6c031f1187f1eaf72..62ccafe2ee2bf8271c66bf36a325ed5f257c4c9d 100644
(file)
--- 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) {