fix return value
Merge pull request #2216 from fstagni/fixTS

[v6r12] fix return value