isi_call_dtmf_send_resp() handles the success case incorrectly, and
thus all send_tones attempts fail with bogus error codes.
---
 drivers/isimodem/voicecall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c
index e5842aa..acbaa63 100644
--- a/drivers/isimodem/voicecall.c
+++ b/drivers/isimodem/voicecall.c
@@ -865,7 +865,7 @@ static void isi_call_dtmf_send_resp(const GIsiMessage *msg, 
void *data)
        struct isi_call_req_ctx *irc = data;
        GIsiSubBlockIter iter;
        uint8_t cause_type;
-       uint8_t cause;
+       uint8_t cause = CALL_CAUSE_NO_CAUSE;
 
        if (!check_response_status(msg, CALL_DTMF_SEND_RESP))
                goto error;
-- 
1.7.0.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to