From a56649d2db37e40bdf76f4aeadf794a519622b5a Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Sat, 10 Aug 2013 20:30:53 +0300 Subject: [PATCH] soap: fix crash in temporary hack Some callbacks don't like msg == NULL. --- src/core/sip-soap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/sip-soap.c b/src/core/sip-soap.c index eefd17a7..f8ec116f 100644 --- a/src/core/sip-soap.c +++ b/src/core/sip-soap.c @@ -32,6 +32,7 @@ #include +#include "sipmsg.h" /* TEMPORARY */ #include "sip-soap.h" #include "sip-transport.h" #include "sipe-backend.h" /* TEMPORARY */ @@ -53,9 +54,11 @@ void sip_soap_raw_request_cb(struct sipe_core_private *sipe_private, */ if (sipe_ucs_is_migrated(sipe_private)) { if (callback) { + struct sipmsg msg; struct transaction trans; + msg.response = 500; trans.payload = payload; - (*callback)(sipe_private, NULL, &trans); + (*callback)(sipe_private, &msg, &trans); } sipe_backend_notify_error(SIPE_CORE_PUBLIC, "Contact list migrated", -- 2.11.4.GIT