From: Wilfried Goesgens Date: Sun, 29 Sep 2013 15:08:27 +0000 (+0200) Subject: NULL-Protect the Context-ID X-Git-Tag: v9.01~239 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=590482d0eb0f19c6068cabdf3739f7146fd55eeb NULL-Protect the Context-ID --- diff --git a/citadel/event_client.h b/citadel/event_client.h index e12397927..cbb1a5cc1 100644 --- a/citadel/event_client.h +++ b/citadel/event_client.h @@ -223,7 +223,7 @@ extern int DebugCAres; #define EDBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (DebugEventLoop != 0)) -#define CCID ((CitContext*)IO->CitContext)->cs_pid +#define CCID ((CitContext*)IO->CitContext)?((CitContext*)IO->CitContext)->cs_pid:-1 #define EVQ_syslog(LEVEL, FORMAT, ...) \ EDBGLOG (LEVEL) syslog(LEVEL, "IOQ " FORMAT, __VA_ARGS__)