Pointed out by Coverity. Backpatch to all supported branches, the code has been that way for a long while.
Attach a file by drag & drop or click to upload