]> 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:28:34 +0000 (22:28 +0300)
commit62f86b32ea249bb207a4a6b3f6b4f675af64e523
treef30dfdfc9c16522577525bc2088fd996be513b74
parent04daad28c8aa5a5487fbec5e0a534970d24e5181
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