Fix error detection in contrib/pgcrypto's encrypt_iv() and decrypt_iv().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7c016e3f56e2a7d8e9dd00a6d2d80bdc2239424e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-01-28T04:09:33Z
Releases: 9.1.3
Fix error detection in contrib/pgcrypto's encrypt_iv() and decrypt_iv().

Due to oversights, the encrypt_iv() and decrypt_iv() functions failed to
report certain types of invalid-input errors, and would instead return
random garbage values.

Marko Kreen, per report from Stefan Kaltenbrunner

Files

PathChange+/−
contrib/pgcrypto/pgcrypto.c modified +4 −4