Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/src/tcf/services/local/LocatorService.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/src/tcf/services/local/LocatorService.py b/python/src/tcf/services/local/LocatorService.py
index 468d0a06b..dffd3556a 100644
--- a/python/src/tcf/services/local/LocatorService.py
+++ b/python/src/tcf/services/local/LocatorService.py
@@ -528,6 +528,7 @@ class LocatorService(locator.LocatorService):
@return a map containing the attributes
"""
attrs = {}
+ # Remove packet header
s = data[8:size].decode("UTF-8")
l = len(s)
i = 0
@@ -555,7 +556,7 @@ class LocatorService(locator.LocatorService):
"""
cnt = 0
attrs = {}
- s = data[8:size - 8].decode("UTF-8")
+ s = data[8:].decode("UTF-8")
l = len(s)
i = 0
while i < l:

Back to the top