From 6153b626c1725a9cc1652ecef8a295774626cd83 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 8 Jul 2009 17:51:10 +0300 Subject: [PATCH] Fix clearing svc_cache before the adapter is up --- src/adapter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index bd7166f1e..289f1f323 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2269,7 +2269,8 @@ int adapter_update(struct btd_adapter *adapter, uint8_t new_svc) return 0; if (!adapter->up) { - adapter->svc_cache = new_svc; + if (new_svc) + adapter->svc_cache = new_svc; return 0; }