Correctly set the return status (0 or 1) after doing byte by byte compare