musl: fix getent utility segfault on resolution failure
This commit is contained in:
parent
df57113952
commit
14ef062f0b
2 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ static int networks(int argc, char *argv[])
|
||||||
ne = getnetbyaddr(net, AF_INET);
|
ne = getnetbyaddr(net, AF_INET);
|
||||||
else
|
else
|
||||||
ne = getnetbyname(argv[i]);
|
ne = getnetbyname(argv[i]);
|
||||||
if (ne != NULL) {
|
if (ne == NULL) {
|
||||||
rv = RV_NOTFOUND;
|
rv = RV_NOTFOUND;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'musl'.
|
# Template file for 'musl'.
|
||||||
pkgname=musl
|
pkgname=musl
|
||||||
version=1.1.21
|
version=1.1.21
|
||||||
revision=1
|
revision=2
|
||||||
archs="*-musl"
|
archs="*-musl"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--prefix=/usr --disable-gcc-wrapper"
|
configure_args="--prefix=/usr --disable-gcc-wrapper"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue