ah: Correctly pass error codes in ahash output callback.