From 61c536148db83617d712d2b479e1275e880f0ef3 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 18 Aug 2020 18:21:29 +0300 Subject: [PATCH] Fix short header version setter stack overflow Signed-off-by: Alex Vanin --- v2/object/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/object/types.go b/v2/object/types.go index 3ed9f39..c6a0d43 100644 --- a/v2/object/types.go +++ b/v2/object/types.go @@ -326,7 +326,7 @@ func (h *ShortHeader) GetVersion() *service.Version { func (h *ShortHeader) SetVersion(v *service.Version) { if h != nil { - h.SetVersion(v) + h.version = v } }