From 12e78949cc07d56c87e0837f280fb7aeea72cda3 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Mon, 29 Jun 2015 21:01:59 +0200 Subject: [PATCH] Make sure chown_flag is always initialized Suggested-by: christian@whoop.org Resolves: #1223329 --- ...rop-root-priviledges-before-opening-first-savefile-.patch | 4 ++-- tcpdump.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/0003-Drop-root-priviledges-before-opening-first-savefile-.patch b/0003-Drop-root-priviledges-before-opening-first-savefile-.patch index 99de60a..ea63dd5 100644 --- a/0003-Drop-root-priviledges-before-opening-first-savefile-.patch +++ b/0003-Drop-root-priviledges-before-opening-first-savefile-.patch @@ -38,11 +38,11 @@ diff --git a/tcpdump.c b/tcpdump.c index 2fd1617..4cbeb05 100644 --- a/tcpdump.c +++ b/tcpdump.c -@@ -1029,6 +1029,7 @@ main(int argc, char **argv) +@@ -1029,3 +1029,4 @@ main(int argc, char **argv) cap_rights_t rights; int cansandbox; #endif /* HAVE_CAPSICUM */ -+ int chown_flag; ++ int chown_flag = 0; #ifdef WIN32 if(wsockinit() != 0) return 1; diff --git a/tcpdump.spec b/tcpdump.spec index 992f763..9e15e8f 100644 --- a/tcpdump.spec +++ b/tcpdump.spec @@ -2,7 +2,7 @@ Summary: A network traffic monitoring tool Name: tcpdump Epoch: 14 Version: 4.7.4 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD with advertising URL: http://www.tcpdump.org Group: Applications/Internet @@ -82,6 +82,9 @@ exit 0 %{_mandir}/man8/tcpdump.8* %changelog +* Mon Jun 29 2015 Michal Sekletar - 14:4.7.4-3 +- prevent sefaulting by properly initializing chown_flag variable (#1223329) + * Fri Jun 19 2015 Fedora Release Engineering - 14:4.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild