tgls: fix parsing error

spotted by @edwintorok in #2132
Merge pull request #2133 from avsm/master

tgls: fix parsing error