diff options
author | svimik <svimik@mail.ru> | 2011-09-29 13:41:34 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2013-05-06 17:09:12 +0200 |
commit | 31e5f34f3c6cf3aa6f120d22c415ac74a5ba1639 (patch) | |
tree | fef23d88da06153484d89881be0330e46259304e | |
parent | d0ccb982e1714c8dfefd6eacf0c6f899eb71b582 (diff) | |
download | openvpn-31e5f34f3c6cf3aa6f120d22c415ac74a5ba1639.tar.gz openvpn-31e5f34f3c6cf3aa6f120d22c415ac74a5ba1639.tar.xz openvpn-31e5f34f3c6cf3aa6f120d22c415ac74a5ba1639.zip |
Fix segfault when enabling pf plug-ins
This fixes an issue where a segfault happens in pf_cn_test() if no
packet filtering rules have been parsed. See the trac ticket for
more details.
Trac: 163
Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | src/openvpn/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/pf.c b/src/openvpn/pf.c index aafe9ff..461beed 100644 --- a/src/openvpn/pf.c +++ b/src/openvpn/pf.c @@ -417,7 +417,7 @@ lookup_cn_rule (struct hash *h, const char *cn, const uint32_t cn_hash) bool pf_cn_test (struct pf_set *pfs, const struct tls_multi *tm, const int type, const char *prefix) { - if (!pfs->kill) + if (pfs && !pfs->kill) { const char *cn; uint32_t cn_hash; |