Fixes Coverity CID 1396416. Signed-off-by: Marton Balint <cus@passwd.hu> (cherry picked from commit 4556dad2b7379a527134db519ab60111abefaf10)