From 0534bbcd63ddd3b2bdcaf72496d65371e4194a0e Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Fri, 29 Apr 2005 05:28:41 +0000 Subject: [PATCH] Minor bug fix to mm7soap handler -- no crash if http body is empty. --- mbuni/mmsc/mmsproxy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mbuni/mmsc/mmsproxy.c b/mbuni/mmsc/mmsproxy.c index acf50cd..8989357 100644 --- a/mbuni/mmsc/mmsproxy.c +++ b/mbuni/mmsc/mmsproxy.c @@ -1619,7 +1619,9 @@ static void mm7soap_dispatch(MmsHTTPClientInfo *h) char *msgtype = ""; Octstr *qf = NULL; - mreq = mm7_parse_soap(h->headers, h->body); + + if (h->body) + mreq = mm7_parse_soap(h->headers, h->body); if (mreq) msgtype = mms_mm7tag_to_cstr(mm7_msgtype(mreq)); debug("mmsprox.mm7sendinterface", 0,