| author | Benoit Perrin | 2012-10-23 02:45:36 (EDT) |
|---|---|---|
| committer | Anton Leherbauer | 2012-10-23 02:45:36 (EDT) |
| commit | d51f3ad7fe8450ee399511595c9cea58d8c42a19 (patch) (side-by-side diff) | |
| tree | 85d7e16b56ac970fdbfcb8de0a4a39d7aec00a9d | |
| parent | c7465d3975386a92cf43b6ec29cf2c1ba38fe235 (diff) | |
| download | org.eclipse.tcf-d51f3ad7fe8450ee399511595c9cea58d8c42a19.zip org.eclipse.tcf-d51f3ad7fe8450ee399511595c9cea58d8c42a19.tar.gz org.eclipse.tcf-d51f3ad7fe8450ee399511595c9cea58d8c42a19.tar.bz2 | |
TCF Python: Bug 392583 - Fix packet header removal
| -rw-r--r-- | python/src/tcf/services/local/LocatorService.py | 3 |
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 468d0a0..dffd355 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: |

