Detected by Coverity; CID 1435559. Follow-up to f8d608f3. It would index the array with -1 if neither index was a socket.