If pk is NULL, the backend would segfault when accessing ->algo and the
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| contrib/pgcrypto/pgp-pubenc.c | modified | +3 −1 |