diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2010-06-24 18:46:44 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2010-06-24 18:46:44 +0000 |
commit | 1af6bb72455588a1fc3fb8ece47169c97f2456e2 (patch) | |
tree | bd2a8c37d28d79d3a3155134ce2d406fb39914ba /src/pluto | |
parent | 552f653fdef8a6dc2ff2e3ac2ccedf711205fab2 (diff) | |
download | vyos-strongswan-1af6bb72455588a1fc3fb8ece47169c97f2456e2.tar.gz vyos-strongswan-1af6bb72455588a1fc3fb8ece47169c97f2456e2.zip |
Fix patch to actually apply.
Diffstat (limited to 'src/pluto')
-rw-r--r-- | src/pluto/x509.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pluto/x509.c b/src/pluto/x509.c index 0a29830ea..0abebc6f0 100644 --- a/src/pluto/x509.c +++ b/src/pluto/x509.c @@ -393,6 +393,10 @@ void list_x509cert_chain(const char *caption, cert_t* cert, { written = snprintf(pos, len, ", %Y", id); } + if (written < 0 || written >= len) + { + break; + } pos += written; len -= written; } |