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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3218c2cfc931535e9bb415b1b8c8cbe719c62cfe
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-10-20T19:25:12Z
Releases: 8.3.13
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