Resolves: RHEL-40958 - Segmentation fault (core dumped) on netstat -s
This commit is contained in:
parent
771b15ff8e
commit
ce777c4087
@ -71,22 +71,6 @@ index cbfb2be..4224fe1 100644
|
||||
buf,
|
||||
&src_addr, &ms->sport,
|
||||
&dst_addr, &ms->dport,
|
||||
diff --git a/statistics.c b/statistics.c
|
||||
index 0b5a6f3..469c82e 100644
|
||||
--- a/statistics.c
|
||||
+++ b/statistics.c
|
||||
@@ -571,8 +571,11 @@ int parsesnmp(int flag_raw, int flag_tcp, int flag_udp, int flag_sctp)
|
||||
if (ferror(f)) {
|
||||
perror("/proc/net/sctp/snmp");
|
||||
fclose(f);
|
||||
+ return(1);
|
||||
}
|
||||
}
|
||||
+
|
||||
+ fclose(f);
|
||||
return(0);
|
||||
}
|
||||
|
||||
diff --git a/ifconfig.c b/ifconfig.c
|
||||
index 2b8cbbb..9a64f9a 100644
|
||||
--- a/ifconfig.c
|
||||
@ -133,6 +117,23 @@ index ec82fe8..bd532fb 100644
|
||||
}
|
||||
printf(_("Kernel NET/ROM routing table\n"));
|
||||
printf(_("Destination Mnemonic Quality Neighbour Iface\n"));
|
||||
diff --git a/statistics.c.old b/statistics.c
|
||||
index 0b5a6f3..0e50f8d 100644
|
||||
--- a/statistics.c.old
|
||||
+++ b/statistics.c
|
||||
@@ -571,8 +571,12 @@ int parsesnmp(int flag_raw, int flag_tcp, int flag_udp, int flag_sctp)
|
||||
if (ferror(f)) {
|
||||
perror("/proc/net/sctp/snmp");
|
||||
fclose(f);
|
||||
+ return(1);
|
||||
}
|
||||
+
|
||||
+ fclose(f);
|
||||
}
|
||||
+
|
||||
return(0);
|
||||
}
|
||||
|
||||
diff --git a/lib/inet_gr.c b/lib/inet_gr.c
|
||||
index b172d65..5dcab82 100644
|
||||
--- a/lib/inet_gr.c
|
||||
|
@ -3,7 +3,7 @@
|
||||
Summary: Basic networking tools
|
||||
Name: net-tools
|
||||
Version: 2.0
|
||||
Release: 0.63.%{checkout}%{?dist}
|
||||
Release: 0.64.%{checkout}%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://sourceforge.net/projects/net-tools/
|
||||
|
||||
@ -148,6 +148,9 @@ install -D -p -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/arp-ethers.service
|
||||
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||
|
||||
%changelog
|
||||
* Tue Jun 18 2024 Michal Ruprich <mruprich@redhat.com> - 2.0-0.64.20160912git
|
||||
- Resolves: RHEL-40958 - Segmentation fault (core dumped) on netstat -s
|
||||
|
||||
* Thu May 09 2024 Michal Ruprich <mruprich@redhat.com> - 2.0-0.63.20160912git
|
||||
- Resolves: RHEL-31932 - Addressing findings from static application security testing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user