mms_retrieveconf crash fix: ignore source message type
This commit is contained in:
parent
88a99db39d
commit
bbd268ecce
|
@ -1519,19 +1519,8 @@ MmsMsg *mms_retrieveconf(MmsMsg *msg, Octstr *transactionid,
|
||||||
{
|
{
|
||||||
MmsMsg *m;
|
MmsMsg *m;
|
||||||
|
|
||||||
|
|
||||||
if (msg) {
|
|
||||||
if (msg->message_type == MMS_MSGTYPE_RETRIEVE_CONF)
|
|
||||||
return msg; /* Unchanged. XXX should we copy it instead?!! */
|
|
||||||
#if 0
|
|
||||||
/* we don't need this for mmbox ?? */
|
|
||||||
if (msg->message_type != MMS_MSGTYPE_SEND_REQ)
|
|
||||||
return NULL;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
m = gw_malloc(sizeof *m);
|
m = gw_malloc(sizeof *m);
|
||||||
m->msgId = msg ? octstr_duplicate(msg->msgId) : NULL;
|
m->msgId = msg ? octstr_duplicate(msg->msgId) : octstr_imm("00000");
|
||||||
|
|
||||||
m->headers = http_create_empty_headers();
|
m->headers = http_create_empty_headers();
|
||||||
m->message_type = MMS_MSGTYPE_RETRIEVE_CONF;
|
m->message_type = MMS_MSGTYPE_RETRIEVE_CONF;
|
||||||
|
|
Loading…
Reference in New Issue