Accepting request 714378 from home:brassh:branches:network:utilities

- fix uninitialized tcpflags variables in knockd.c
  (Bug#1138376: Knockd unable to start after upgrade to LEAP 15.1)

OBS-URL: https://build.opensuse.org/request/show/714378
OBS-URL: https://build.opensuse.org/package/show/network:utilities/knock?expand=0&rev=17
This commit is contained in:
Marcus Meissner 2019-07-26 09:01:37 +00:00 committed by Git OBS Bridge
parent a89f27b9ca
commit 48833c6d4a
3 changed files with 24 additions and 2 deletions

View File

@ -1,9 +1,14 @@
Wed Jul 10 08:48 CET 2019 - brassh
- fix uninitialized tcpflags variables in knockd.c
(Bug#1138376: Knockd unable to start after upgrade to LEAP 15.1)
-------------------------------------------------------------------
Thu Nov 23 13:46:18 UTC 2017 - rbrown@suse.com
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
-------------------------------------------------------------------
Tue Dec 1 14:49:38 UTC 2015 - p.drouand@gmail.com

View File

@ -29,7 +29,7 @@
Name: knock
Version: 0.7
Release: 0
Release: 1
Summary: A Port-Knocking Client
License: GPL-2.0+
Group: Productivity/Networking/Security
@ -41,6 +41,7 @@ Source3: %{name}d.conf
Source4: %{name}d.service
Patch0: %{name}-0.5.patch
Patch1: %{name}-include.patch
Patch2: %{name}d-init-tcpflags-vars.patch
BuildRequires: libpcap-devel
%if %{with_systemd}
BuildRequires: systemd-rpm-macros
@ -80,6 +81,7 @@ to open up holes in a firewall for quick access.
%setup -q
%patch0
%patch1
%patch2
%build
%configure

View File

@ -0,0 +1,15 @@
--- src/knockd.c 2019-06-16 18:58:47.092584232 +0200
+++ src/knockd.c 2019-06-16 18:58:31.544615113 +0200
@@ -510,6 +510,12 @@
door->start_command = NULL;
door->cmd_timeout = CMD_TIMEOUT; /* default command timeout (seconds) */
door->stop_command = NULL;
+ door->flag_fin = DONT_CARE;
+ door->flag_syn = DONT_CARE;
+ door->flag_rst = DONT_CARE;
+ door->flag_psh = DONT_CARE;
+ door->flag_ack = DONT_CARE;
+ door->flag_urg = DONT_CARE;
door->one_time_sequences_fd = NULL;
door->pcap_filter_exp = NULL;
doors = list_add(doors, door);