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);
|
||||
else
|
||||
ne = getnetbyname(argv[i]);
|
||||
if (ne != NULL) {
|
||||
if (ne == NULL) {
|
||||
rv = RV_NOTFOUND;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue