From 571d21a33a46707deabc80769b4c8cb7d0f7c161 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 7 Jan 2008 17:26:49 +0000 Subject: - MsgSetProperty() implemented - defined a property class - implemented deserializer (needs some more work) --- plugins/imklog/imklog.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'plugins/imklog/imklog.c') diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c index 11bc8d41..8ed900dd 100644 --- a/plugins/imklog/imklog.c +++ b/plugins/imklog/imklog.c @@ -131,14 +131,7 @@ static rsRetVal writeSyslogV(int iPRI, const char *szFmt, va_list va) /* here we must create our message object and supply it to the message queue */ - if((pMsg = MsgConstruct()) == NULL){ - /* There is not much we can do in this case - we discard the message - * then. - */ - dbgprintf("Memory shortage in imklogd: could not construct Msg object.\n"); - return RS_RET_OUT_OF_MEMORY; - } - + CHKiRet(MsgConstruct(&pMsg)); MsgSetUxTradMsg(pMsg, msgBuf); MsgSetRawMsg(pMsg, msgBuf); MsgSetMSG(pMsg, (msgBuf + iLen)); @@ -152,6 +145,7 @@ static rsRetVal writeSyslogV(int iPRI, const char *szFmt, va_list va) /* provide message to the queue engine */ logmsg(iPRI, pMsg, INTERNAL_MSG); +finalize_it: return iRet; } -- cgit v1.2.3