Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms_task_send] Fixed the error code for MMSC refusal case
  • Loading branch information
monich committed Mar 5, 2014
1 parent 80583a2 commit 63e78d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mms-lib/src/mms_task_send.c
Expand Up @@ -59,6 +59,7 @@ mms_task_send_done(
SoupStatus status)
{
MMSPdu* pdu = NULL;
MMS_SEND_STATE state = MMS_SEND_STATE_SEND_ERROR;
const char* msgid = NULL;
if (SOUP_STATUS_IS_SUCCESSFUL(status)) {
/* Decode the result */
Expand All @@ -80,6 +81,7 @@ mms_task_send_done(
}
} else {
MMS_ERR("MMSC responded with %u", pdu->sc.rsp_status);
state = MMS_SEND_STATE_REFUSED;
}
} else {
MMS_ERR("Unexpected response from MMSC");
Expand All @@ -95,7 +97,7 @@ mms_task_send_done(
mms_handler_message_sent(http->task.handler, http->task.id, msgid);
} else {
mms_handler_message_send_state_changed(http->task.handler,
http->task.id, MMS_SEND_STATE_SEND_ERROR);
http->task.id, state);
}
if (pdu) mms_message_free(pdu);
}
Expand Down

0 comments on commit 63e78d3

Please sign in to comment.