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:04 +0000 (22:24 +0300)
commit18e752f226300292c6182b68b2568dc2d66db8bd
tree89dbcd0ae5078282aa20d7f78f037c71dbc2594b
parentdef30e84c41389225ee9e56cb7c722980bab9746
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