SHA256
1
0
forked from pool/strongswan

- Applied a fix by Marcus Meissner for a loop check in ipsec pki

causing a segfault on attempt to create certificates when fips
  is enabled (bsc#918474,https://wiki.strongswan.org/issues/881)
  [+ 0006-strongswan-pkifix.918474.patch]

OBS-URL: https://build.opensuse.org/package/show/network:vpn/strongswan?expand=0&rev=88
This commit is contained in:
Marius Tomaschewski 2015-03-09 09:02:18 +00:00 committed by Git OBS Bridge
parent 8a2afb449d
commit b401bc1d51
3 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,16 @@
References: bsc#918474,https://wiki.strongswan.org/issues/881
Upstream: yes
Index: strongswan-5.1.3/src/pki/command.c
===================================================================
--- strongswan-5.1.3.orig/src/pki/command.c
+++ strongswan-5.1.3/src/pki/command.c
@@ -73,7 +73,7 @@ static void build_opts()
memset(command_optstring, 0, sizeof(command_optstring));
if (active == help_idx)
{
- for (i = 0; cmds[i].cmd; i++)
+ for (i = 0; i < MAX_COMMANDS && cmds[i].cmd; i++)
{
command_opts[i].name = cmds[i].cmd;
command_opts[i].val = cmds[i].op;

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Mar 9 08:37:42 UTC 2015 - mt@suse.de
- Applied a fix by Marcus Meissner for a loop check in ipsec pki
causing a segfault on attempt to create certificates when fips
is enabled (bsc#918474,https://wiki.strongswan.org/issues/881)
[+ 0006-strongswan-pkifix.918474.patch]
-------------------------------------------------------------------
Mon Jan 5 14:38:46 UTC 2015 - mt@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package strongswan
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -82,6 +82,7 @@ Patch2: %{name}_ipsec_service.patch
Patch3: %{name}_fipscheck.patch
Patch4: %{name}_fipsfilter.patch
%endif
Patch7: 0007-strongswan-pkifix.918474.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: curl-devel
@ -291,6 +292,7 @@ and the load testing plugin for IKEv2 daemon.
%if %{with fipscheck}
%patch3 -p0
%patch4 -p1
%patch7 -p1
%endif
sed -e 's|@libexecdir@|%_libexecdir|g' \
< $RPM_SOURCE_DIR/strongswan.init.in \