Frederic Crozat
2e48bf7a12
- version 207, distribution specific changes follow, for overall release notes see NEWS. - Fixed: * Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted * Fix shutdown hang "a stop job is running for Session 1 of user root" that was reported in opensuse-factory list. - systemd-sysctl no longer reads /etc/sysctl.conf however backward compatbility is to be provides by a symlink created at %post. - version 207, distribution specific changes follow, for overall release notes see NEWS. - Fixed: * Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted * Fix shutdown hang "a stop job is running for Session 1 of user root" that was reported in opensuse-factory list. - systemd-sysctl no longer reads /etc/sysctl.conf however backward compatbility is to be provides by a symlink created at %post. OBS-URL: https://build.opensuse.org/request/show/198799 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=429
25 lines
894 B
Diff
25 lines
894 B
Diff
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
|
Date: Mon, 26 Nov 2012 09:49:42 +0100
|
|
Subject: avoid assertion if invalid address familily is passed to
|
|
gethostbyaddr_r (bnc#791101)
|
|
|
|
---
|
|
src/nss-myhostname/nss-myhostname.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- systemd-206_git201308300826.orig/src/nss-myhostname/nss-myhostname.c
|
|
+++ systemd-206_git201308300826/src/nss-myhostname/nss-myhostname.c
|
|
@@ -442,6 +442,12 @@ enum nss_status _nss_myhostname_gethostb
|
|
uint32_t local_address_ipv4 = LOCALADDRESS_IPV4;
|
|
const char *canonical = NULL, *additional = NULL;
|
|
|
|
+ if (af != AF_INET && af != AF_INET6) {
|
|
+ *errnop = EAFNOSUPPORT;
|
|
+ *h_errnop = NO_DATA;
|
|
+ return NSS_STATUS_UNAVAIL;
|
|
+ }
|
|
+
|
|
if (len != PROTO_ADDRESS_SIZE(af)) {
|
|
*errnop = EINVAL;
|
|
*h_errnop = NO_RECOVERY;
|