132-inet_fix_res_init.patch 286 B

123456789101112131415
  1. --- a/libc/inet/resolv.c
  2. +++ b/libc/inet/resolv.c
  3. @@ -3654,11 +3654,11 @@ res_init(void)
  4. */
  5. if (!_res.id)
  6. _res.id = res_randomid();
  7. - __res_sync = res_sync_func;
  8. __UCLIBC_MUTEX_UNLOCK(__resolv_lock);
  9. __res_vinit(&_res, 1);
  10. + __res_sync = res_sync_func;
  11. return 0;
  12. }