Skip to content

Commit

Permalink
Last patch contained a bug. Fixing it.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.kannel.org/opensmppbox/trunk@43 0b225a68-5fa7-45c5-9c9e-d7f6881f360f
  • Loading branch information
rkluwen committed Aug 11, 2010
1 parent a733851 commit 3d57865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gw/smppbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ static Msg *pdu_to_msg(Boxc *box, SMPP_PDU *pdu, long *reason)

msg = msg_create(sms);
gw_assert(msg != NULL);
msg->sms.sms_type = mt_push;
*reason = SMPP_ESME_ROK;

/*
Expand Down Expand Up @@ -1130,7 +1131,6 @@ static Msg *pdu_to_msg(Boxc *box, SMPP_PDU *pdu, long *reason)
}

msg->sms.time = time(NULL);
msg->sms.sms_type = mt_push;

return msg;

Expand All @@ -1155,6 +1155,7 @@ static Msg *data_sm_to_msg(Boxc *box, SMPP_PDU *pdu, long *reason)

msg = msg_create(sms);
gw_assert(msg != NULL);
msg->sms.sms_type = mt_push;
*reason = SMPP_ESME_ROK;

/*
Expand Down Expand Up @@ -1285,7 +1286,6 @@ static Msg *data_sm_to_msg(Boxc *box, SMPP_PDU *pdu, long *reason)
}

msg->sms.time = time(NULL);
msg->sms.sms_type = mt_push;

return msg;

Expand Down

0 comments on commit 3d57865

Please sign in to comment.