From 6e23d68a1672ab4d26e717173201b93d2670bf92 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Fri, 2 Jul 2010 13:39:27 +0000 Subject: [PATCH] *** empty log message *** --- mbuni/ChangeLog | 2 ++ mbuni/mmsbox/bearerbox.c | 2 +- mbuni/mmsbox/mmsbox_cfg.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mbuni/ChangeLog b/mbuni/ChangeLog index d128d88..e174619 100644 --- a/mbuni/ChangeLog +++ b/mbuni/ChangeLog @@ -1,3 +1,5 @@ +2010-07-02 P. A. Bagyenda + * Fixed crash due to octstr_delete on immutable string in mm7 receiver 2010-05-26 P. A. Bagyenda * Misc. patches/cleanups thanks to SATOH Fumiyasu 2010-01-25 P. A. Bagyenda diff --git a/mbuni/mmsbox/bearerbox.c b/mbuni/mmsbox/bearerbox.c index d7f8154..3688b5b 100644 --- a/mbuni/mmsbox/bearerbox.c +++ b/mbuni/mmsbox/bearerbox.c @@ -228,7 +228,7 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h) &expiryt, &delivert, &uaprof, &uaprof_tstamp); if (!from) - from = octstr_imm("anon@anon"); + from = octstr_create("anon@anon"); qdir = get_mmsbox_queue_dir(from, to, h->m, &mmc_id); /* get routing info. */ diff --git a/mbuni/mmsbox/mmsbox_cfg.c b/mbuni/mmsbox/mmsbox_cfg.c index ac861e2..c5b7ef4 100644 --- a/mbuni/mmsbox/mmsbox_cfg.c +++ b/mbuni/mmsbox/mmsbox_cfg.c @@ -861,7 +861,8 @@ Octstr *get_mmsbox_queue_dir(Octstr *from, List *to, MmscGrp *m, octstr_destroy(fto); } else { if (unified_prefix) - _mms_fixup_address(&fto, octstr_get_cstr(unified_prefix), strip_prefixes, 1); + _mms_fixup_address(&fto, octstr_get_cstr(unified_prefix), strip_prefixes, 1); + gwlist_insert(to, 0, fto); octstr_destroy(xto); }