summaryrefslogtreecommitdiff
path: root/tools/btgatt-server.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-02-25 14:15:34 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-02-26 15:27:34 +0200
commit825fa14fba8ab45be894f63ee516f1281a9713fb (patch)
tree331dd2bf86dba7be74fec09aea848468d21d14a3 /tools/btgatt-server.c
parentbcd94a8e9df8b721ae7bc3fd879f923bab87275e (diff)
downloadbluez-825fa14fba8ab45be894f63ee516f1281a9713fb.tar.gz
tools/btgatt-server: Fix sign counter
The sing counter should be set with the counter received not incremented by one since the check is for > the counter received may be bigger than the increment making the counters go out of sync.
Diffstat (limited to 'tools/btgatt-server.c')
-rw-r--r--tools/btgatt-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c
index 09a123c16..9eeea3b4c 100644
--- a/tools/btgatt-server.c
+++ b/tools/btgatt-server.c
@@ -1004,7 +1004,7 @@ static bool remote_counter(uint32_t *sign_cnt, void *user_data)
if (*sign_cnt < cnt)
return false;
- cnt++;
+ cnt = *sign_cnt;
return true;
}