You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
497 B

Musl will always return something with getservbyport so we cannot skip
ports that returns non-null.
diff --git a/utils/statd/rmtcall.c b/utils/statd/rmtcall.c
index fd576d9..d72a0bf 100644
--- a/utils/statd/rmtcall.c
+++ b/utils/statd/rmtcall.c
@@ -90,8 +90,10 @@ statd_get_socket(void)
__func__);
break;
}
+#if defined(__GLIBC__) || defined(__UCLIBC__)
se = getservbyport(sin.sin_port, "udp");
if (se == NULL)
+#endif
break;
/* rather not use that port, try again */