diff options
author | Ole Troan <ot@cisco.com> | 2017-10-31 14:50:13 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-10-31 19:40:55 +0000 |
commit | ca3b6f1b4116010b1acbbb29a945767cb5443914 (patch) | |
tree | 93e4bdced73e8f97999688f348bcc4a92ac961cc /src/vpp-api/python | |
parent | 4f68e042b7bde7058a853afc9b97222cb448657a (diff) |
VPP PAPI: Error in unserializer for non-array compound types.
A bug in the decoder of messages when there was a non-array compound type.
The typical result was an error message from the struct library:
"error:unpack_from requires a buffer of at least 4 bytes"
Change-Id: Ie30fec6fc39b9f4177b54fa4adc4fc69674f0e12
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp-api/python')
-rw-r--r-- | src/vpp-api/python/vpp_papi.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp-api/python/vpp_papi.py b/src/vpp-api/python/vpp_papi.py index 7b66c0f4d37..67ac22a4d32 100644 --- a/src/vpp-api/python/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi.py @@ -360,6 +360,7 @@ class VPP(): size += v[1].size else: if callable(v): + size = 0 (s, l) = v(self, False, buf, off, None) res.append(l) size += s |