If pk is NULL, the backend would segfault when accessing ->algo and the

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 4a75c7f9f1120db240b4ddccaa7d46f82bb495c0
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-10-20T19:24:55Z
Releases: 8.4.6
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

Files

PathChange+/−
contrib/pgcrypto/pgp-pubenc.c modified +3 −1