tapcli: Use error counter for buffer allocation error