101-musl-getservbyport.patch 400 B

12345678910111213141516
  1. Musl will always return something with getservbyport so we cannot skip
  2. ports that returns non-null.
  3. --- a/utils/statd/rmtcall.c
  4. +++ b/utils/statd/rmtcall.c
  5. @@ -93,8 +93,10 @@ statd_get_socket(void)
  6. __func__);
  7. break;
  8. }
  9. +#if defined(__GLIBC__) || defined(__UCLIBC__)
  10. se = getservbyport(sin.sin_port, "udp");
  11. if (se == NULL)
  12. +#endif
  13. break;
  14. if (retries == MAX_BRP_RETRIES) {