From 00bdd513feac470595173ca150403ecd16f977ef Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Thu, 6 Aug 2009 07:24:31 +0000 Subject: [PATCH] *** empty log message *** --- mbuni/mmsbox/bearerbox.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mbuni/mmsbox/bearerbox.c b/mbuni/mmsbox/bearerbox.c index 939b749..1c2e1e1 100644 --- a/mbuni/mmsbox/bearerbox.c +++ b/mbuni/mmsbox/bearerbox.c @@ -1454,12 +1454,14 @@ static int sendMsg(MmsEnvelope *e) if (errl) err = http_header_value(errl, octstr_imm("X-Mbuni-Error")); } - if (res == MMS_SEND_OK) - mmc->mt_pdus++; - else - mmc->mt_errors++; - mmc->last_pdu = time(NULL); - return_mmsc_conn(mmc); /* important. */ + if (mmc) { + if (res == MMS_SEND_OK) + mmc->mt_pdus++; + else + mmc->mt_errors++; + mmc->last_pdu = time(NULL); + return_mmsc_conn(mmc); /* important. */ + } done: if (res == MMS_SEND_OK || res == MMS_SEND_QUEUED) { to->process = 0;