diff options
author | 郑桐 <yuesen.xys@alibaba-inc.com> | 2021-10-09 16:01:28 +0800 |
---|---|---|
committer | Jens Geyer <Jens-G@users.noreply.github.com> | 2021-10-18 23:00:55 +0200 |
commit | 0f760537c3f17502e7694c61417dafc02fc3aa3a (patch) | |
tree | 7a8861bd74cc760bbb27906acc6a099b0d143a0e /lib/go/thrift/protocol.go | |
parent | 6a7278b9db78777f146b09fdfe42eb342faec171 (diff) | |
download | thrift-0f760537c3f17502e7694c61417dafc02fc3aa3a.tar.gz |
skip map value with depth limit
Diffstat (limited to 'lib/go/thrift/protocol.go')
-rw-r--r-- | lib/go/thrift/protocol.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/go/thrift/protocol.go b/lib/go/thrift/protocol.go index bd76bcc7d..8543b5fd0 100644 --- a/lib/go/thrift/protocol.go +++ b/lib/go/thrift/protocol.go @@ -146,7 +146,11 @@ func Skip(ctx context.Context, self TProtocol, fieldType TType, maxDepth int) (e if err != nil { return err } - self.Skip(ctx, valueType) + + err = Skip(ctx, self, valueType, maxDepth-1) + if err != nil { + return err + } } return self.ReadMapEnd(ctx) case SET: |