technology: Fix technology refcount
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 8 Dec 2010 15:52:19 +0000 (16:52 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 8 Dec 2010 15:52:19 +0000 (16:52 +0100)
The blocked getter was bumping the technology refcount by calling
technology_get() instead of technology_find().

src/technology.c

index a65136a..8a0ce52 100644 (file)
@@ -742,7 +742,7 @@ connman_bool_t __connman_technology_get_blocked(enum connman_service_type type)
 {
        struct connman_technology *technology;
 
-       technology = technology_get(type);
+       technology = technology_find(type);
        if (technology == NULL)
                return FALSE;