If pk is NULL, the backend would segfault when accessing ->algo and the
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 20 Oct 2010 19:20:33 +0000 (22:20 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 20 Oct 2010 19:25:22 +0000 (22:25 +0300)
commit77f8685bec94b642f1606f64cca6080a2d834441
treed1390bacaa93c180bece1e61f613a162c1968eb5
parent2f4b1498bcd025ce96f460416ccb68b2b992c485
If pk is NULL, the backend would segfault when accessing ->algo and the
following NULL check was never reached.

This problem was found by Coccinelle (null_ref.cocci from coccicheck).

Marti Raudsepp
contrib/pgcrypto/pgp-pubenc.c