]> granicus.if.org Git - postgresql/commit
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:12 +0000 (22:25 +0300)
commit3218c2cfc931535e9bb415b1b8c8cbe719c62cfe
treeea57c56d34038e610b7bece647eb9a8c35cf0004
parentd109b10edcafd2d152a6ae474a7d2ce78e97845f
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