musl: fix getent utility segfault on resolution failure

This commit is contained in:
Quentin Rameau 2019-03-26 21:58:21 +01:00 committed by Enno Boland
parent df57113952
commit 14ef062f0b
No known key found for this signature in database
GPG key ID: D09964719BDE9971
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,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;
}

View file

@ -1,7 +1,7 @@
# Template file for 'musl'.
pkgname=musl
version=1.1.21
revision=1
revision=2
archs="*-musl"
build_style=gnu-configure
configure_args="--prefix=/usr --disable-gcc-wrapper"