diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-05-21 22:53:45 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-05-21 22:53:45 +0000 |
commit | 58ac5e2ff4df40f56e5d44b86c9117c4cdce1ab0 (patch) | |
tree | da6414c9aee4eb49ee76dd26b81993c2c302ee4b /src | |
parent | e1d2435dbf111cc57cf1270c5252e7622b7c080b (diff) | |
download | strongswan-58ac5e2ff4df40f56e5d44b86c9117c4cdce1ab0.tar.bz2 strongswan-58ac5e2ff4df40f56e5d44b86c9117c4cdce1ab0.tar.xz |
fixed segmentation fault caused by malformed attribute certificates
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/plugins/x509/x509_ac.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_ac.c b/src/libstrongswan/plugins/x509/x509_ac.c index 113306072..3861d7145 100644 --- a/src/libstrongswan/plugins/x509/x509_ac.c +++ b/src/libstrongswan/plugins/x509/x509_ac.c @@ -990,6 +990,11 @@ static private_x509_ac_t* build(private_builder_t *this) free(this); + if (ac == NULL) + { + return NULL; + } + /* synthesis if TRUE or analysis if FALSE */ if (ac->encoding.ptr == NULL) { |