1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/musl: fix segfault of getent networks

When changing the original 'if () a else b' block to just 'if () b' the
condition wasn't inverted.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/17312
This commit is contained in:
Sertonix 2025-06-29 00:17:24 +02:00 committed by Natanael Copa
parent d03455bd8b
commit 9fa8364d36
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=musl
pkgver=1.2.5
pkgrel=12
pkgrel=13
pkgdesc="the musl c library (libc) implementation"
url="https://musl.libc.org/"
arch="all"
@ -187,6 +187,6 @@ a70068d2a16b64188f04fccd180585b025aa8bccd4e823d8fdea0be1a80ee8b74cb485ecd22e72b5
8d3a2d5315fc56fee7da9abb8b89bb38c6046c33d154c10d168fb35bfde6b0cf9f13042a3bceee34daf091bc409d699223735dcf19f382eeee1f6be34154f26f ldconfig
062bb49fa54839010acd4af113e20f7263dde1c8a2ca359b5fb2661ef9ed9d84a0f7c3bc10c25dcfa10bb3c5a4874588dff636ac43d5dbb3d748d75400756d0b __stack_chk_fail_local.c
0d80f37b34a35e3d14b012257c50862dfeb9d2c81139ea2dfa101d981d093b009b9fa450ba27a708ac59377a48626971dfc58e20a3799084a65777a0c32cbc7d getconf.c
27fa820dc847b1e4a89a45ab7c7ffb8b6436b6b7f1089004b12561d939b227617797d5fc81696658da3f07daab6cc71ea171eb6afb6f5082336b57e2d0ac8463 getent.c
246e029350d4295147fe311108dcfb991ef130271b856040c1fb6a9955414f263d2a51f978b8ae91f52ff49705e8e4572b8f0e6939801fa854e3f095a67d3d64 getent.c
9d42d66fb1facce2b85dad919be5be819ee290bd26ca2db00982b2f8e055a0196290a008711cbe2b18ec9eee8d2270e3b3a4692c5a1b807013baa5c2b70a2bbf iconv.c
"

View file

@ -310,7 +310,7 @@ static int networks(int argc, char *argv[])
ne = getnetbyaddr(net, AF_INET);
else
ne = getnetbyname(argv[i]);
if (ne != NULL) {
if (ne == NULL) {
rv = RV_NOTFOUND;
break;
}