1
0
Fork 0

mms_retrieveconf crash fix: ignore source message type

This commit is contained in:
bagyenda 2005-11-15 05:23:47 +00:00
parent 88a99db39d
commit bbd268ecce
1 changed files with 1 additions and 12 deletions

View File

@ -1519,19 +1519,8 @@ MmsMsg *mms_retrieveconf(MmsMsg *msg, Octstr *transactionid,
{
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->msgId = msg ? octstr_duplicate(msg->msgId) : NULL;
m->msgId = msg ? octstr_duplicate(msg->msgId) : octstr_imm("00000");
m->headers = http_create_empty_headers();
m->message_type = MMS_MSGTYPE_RETRIEVE_CONF;