]> 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:43 +0000 (22:24 +0300)
commit686ad321641b50f75536faf8c6156cec700eb936
treedf1e878573fe282b5bd638e321b3d977d766d44a
parentc98cd9bdb618794643b670c8240c0aad213340c7
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