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

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