Hi James,

On 16/10/17 19:06, James Prestwood wrote:
---
  src/sim-auth.c | 23 +++++++++++++++++------
  1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/sim-auth.c b/src/sim-auth.c
index b9552b5..9ae5574 100644
--- a/src/sim-auth.c
+++ b/src/sim-auth.c
@@ -427,6 +427,7 @@ static DBusMessage *usim_gsm_authenticate(DBusConnection 
*conn,
        DBusMessageIter array;
        int i;
        struct sim_app_record *app;
+       int rands;
if (sim->pending)
                return __ofono_error_busy(msg);
@@ -436,11 +437,16 @@ static DBusMessage *usim_gsm_authenticate(DBusConnection 
*conn,
        if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY)
                return __ofono_error_invalid_format(msg);
+ rands = dbus_message_iter_get_element_count(&iter);


It appears that dbus_message_iter_get_element_count() requires dbus 1.9.16 or later, would it be possible to avoid it?

Thanks,
-Slava
_______________________________________________
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to