[PATCH 2/2] libmbim-glib, proxy: Clamp standard service subscribe list to basic-connect to dss

Greg Suarez gpsuarez2512 at gmail.com
Wed Jul 2 10:52:55 PDT 2014


---
 src/libmbim-glib/mbim-proxy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libmbim-glib/mbim-proxy.c b/src/libmbim-glib/mbim-proxy.c
index d89aac6..73b6a26 100644
--- a/src/libmbim-glib/mbim-proxy.c
+++ b/src/libmbim-glib/mbim-proxy.c
@@ -546,10 +546,10 @@ standard_service_subscribe_list_new (void)
     MbimEventEntry **out;
 
 
-    out = g_new0 (MbimEventEntry *, MBIM_SERVICE_PROXY_CONTROL);
+    out = g_new0 (MbimEventEntry *, MBIM_SERVICE_MS_FIRMWARE_ID);
 
     for (service = MBIM_SERVICE_BASIC_CONNECT, i = 0;
-         service < MBIM_SERVICE_PROXY_CONTROL;
+         service < MBIM_SERVICE_MS_FIRMWARE_ID;
          service++, i++) {
          out[i] = g_new0 (MbimEventEntry, 1);
          memcpy (&out[i]->device_service_id, mbim_uuid_from_service (service), sizeof (MbimUuid));
-- 
1.9.3



More information about the libmbim-devel mailing list