Fix short header version setter stack overflow

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-18 18:21:29 +03:00 committed by Stanislav Bogatyrev
parent e0eb67bac8
commit 61c536148d

View file

@ -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
}
}