From 7c777cd10f63e9b44ecb33c171d6ca91cdc92c1f Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Tue, 16 Nov 2010 11:35:02 +0000 Subject: [PATCH] minor fix --- mbuni/ChangeLog | 2 ++ mbuni/mmlib/mms_queue.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mbuni/ChangeLog b/mbuni/ChangeLog index 4fd3cb8..0171bd1 100644 --- a/mbuni/ChangeLog +++ b/mbuni/ChangeLog @@ -1,3 +1,5 @@ +2010-11-16 P. A. Bagyenda + * Minor bug fix, patch from Vincent Chavanis 2010-11-05 P. A. Bagyenda * Better event callback info (MM7 headers, etc) 2010-11-04 P. A. Bagyenda diff --git a/mbuni/mmlib/mms_queue.c b/mbuni/mmlib/mms_queue.c index 24c6199..86171ab 100644 --- a/mbuni/mmlib/mms_queue.c +++ b/mbuni/mmlib/mms_queue.c @@ -656,6 +656,8 @@ static int writemmsdata(Octstr *ms, char *df, char subdir[], char *mms_queuedir) Octstr *dfname; int fd, n, res = 0; + if (ms == NULL) + return 0; dfname = octstr_format("%s/%s%s", mms_queuedir, subdir, df);