Fixed a double free in init_transport (bz 2115517)
Signed-off-by: Steve Dickson <steved@redhat.com> Resolves: bz2115517
This commit is contained in:
parent
761aff1575
commit
cba24ce316
15
rpcbind-1.2.6-double-free.patch
Normal file
15
rpcbind-1.2.6-double-free.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -up rpcbind-1.2.6/src/rpcbind.c.orig rpcbind-1.2.6/src/rpcbind.c
|
||||||
|
--- rpcbind-1.2.6/src/rpcbind.c.orig 2022-08-16 10:16:03.196903368 -0400
|
||||||
|
+++ rpcbind-1.2.6/src/rpcbind.c 2022-08-16 10:16:38.595062481 -0400
|
||||||
|
@@ -562,8 +562,10 @@ init_transport(struct netconfig *nconf)
|
||||||
|
syslog(LOG_ERR, "cannot bind %s on %s: %m",
|
||||||
|
(hosts[nhostsbak] == NULL) ? "*" :
|
||||||
|
hosts[nhostsbak], nconf->nc_netid);
|
||||||
|
- if (res != NULL)
|
||||||
|
+ if (res != NULL) {
|
||||||
|
freeaddrinfo(res);
|
||||||
|
+ res = NULL;
|
||||||
|
+ }
|
||||||
|
continue;
|
||||||
|
} else
|
||||||
|
checkbind++;
|
@ -22,6 +22,11 @@ Requires(post): systemd policycoreutils
|
|||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd coreutils
|
Requires(postun): systemd coreutils
|
||||||
|
|
||||||
|
#
|
||||||
|
# RHEL9.1
|
||||||
|
#
|
||||||
|
Patch001: rpcbind-1.2.6-double-free.patch
|
||||||
|
|
||||||
Patch100: rpcbind-0.2.3-systemd-envfile.patch
|
Patch100: rpcbind-0.2.3-systemd-envfile.patch
|
||||||
Patch101: rpcbind-0.2.3-systemd-tmpfiles.patch
|
Patch101: rpcbind-0.2.3-systemd-tmpfiles.patch
|
||||||
Patch102: rpcbind-0.2.4-runstatdir.patch
|
Patch102: rpcbind-0.2.4-runstatdir.patch
|
||||||
@ -125,6 +130,9 @@ fi
|
|||||||
%attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir}
|
%attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 16 2022 Steve Dickson <steved@redhat.com> - 1.2.6-2
|
||||||
|
- Fixed a double free in init_transport (bz 2115517)
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.6-2
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.6-2
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
Loading…
Reference in New Issue
Block a user