Only zero the output buffer in case of failure