summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-12-08 16:52:19 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-08 16:52:19 +0100
commit65e9841ecffe3a3cfd7f655859c6ffa98e4cf6c4 (patch)
treeb5f434a6a0f731ba663bb03de7354d7750247d55 /src
parentb2a4246439738b5e9a262da77d56d99d348da36a (diff)
downloadconnman-65e9841ecffe3a3cfd7f655859c6ffa98e4cf6c4.tar.gz
connman-65e9841ecffe3a3cfd7f655859c6ffa98e4cf6c4.tar.bz2
connman-65e9841ecffe3a3cfd7f655859c6ffa98e4cf6c4.zip
technology: Fix technology refcount
The blocked getter was bumping the technology refcount by calling technology_get() instead of technology_find().
Diffstat (limited to 'src')
-rw-r--r--src/technology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/technology.c b/src/technology.c
index a65136a1..8a0ce522 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -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;