patch-src_pluto_adns_c 573 B

1234567891011121314151617181920
  1. --- strongswan-4.5.0.orig/src/pluto/adns.c 2010-01-24 02:49:37.000000000 +0100
  2. +++ strongswan-4.5.0/src/pluto/adns.c 2010-12-30 20:25:54.000000000 +0100
  3. @@ -179,7 +179,8 @@ write_pipe(int fd, const unsigned char *
  4. res_query(dname, class, type, answer, anslen)
  5. # define res_nclose(statp) res_close()
  6. -static struct __res_state *statp = &_res;
  7. +static struct __res_state *statp;
  8. +//static struct __res_state *statp = &_res;
  9. #else /* !OLD_RESOLVER */
  10. @@ -590,6 +591,7 @@ int
  11. main(int argc UNUSED, char **argv)
  12. {
  13. int i = 1;
  14. + statp = &_res;
  15. name = argv[0];