Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/crypto/dist/openssl/apps Apply patch (requested by mlelst...



details:   https://anonhg.NetBSD.org/src/rev/8b1ac23c89f2
branches:  netbsd-3
changeset: 577559:8b1ac23c89f2
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Nov 27 15:55:41 2005 +0000

description:
Apply patch (requested by mlelstv in ticket #999):
        Avoid NULL pointer dereference when doing
                openssl ca -h
        with openssl0.9.7d. Fixes PR 28851.

diffstat:

 crypto/dist/openssl/apps/apps.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 54650a89d4ba -r 8b1ac23c89f2 crypto/dist/openssl/apps/apps.c
--- a/crypto/dist/openssl/apps/apps.c   Sun Nov 27 15:51:28 2005 +0000
+++ b/crypto/dist/openssl/apps/apps.c   Sun Nov 27 15:55:41 2005 +0000
@@ -1970,6 +1970,6 @@
 
 void free_index(CA_DB *db)
        {
-       TXT_DB_free(db->db);
+       if (db) TXT_DB_free(db->db);
        OPENSSL_free(db);
        }



Home | Main Index | Thread Index | Old Index