]> 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:24:55 +0000 (22:24 +0300)
commit4a75c7f9f1120db240b4ddccaa7d46f82bb495c0
tree1864561a9cf71662abf397d78b33a5444678d872
parentd4346e15b477cffae44e1f2fbe1f3235abdb458b
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