net: Fix Coverity ID 241039 Unchecked return value