patch-webmitm_c 708 B

1234567891011121314151617181920
  1. --- dsniff-2.4.orig/webmitm.c 2001-03-17 09:35:05.000000000 +0100
  2. +++ dsniff-2.4/webmitm.c 2009-12-11 13:05:28.000000000 +0100
  3. @@ -242,7 +242,7 @@ server_init(char *buf, int size)
  4. word = buf_tok(&msg, "/", 1);
  5. vhost = buf_strdup(word);
  6. }
  7. - ssin.sin_addr.s_addr = libnet_name_resolve(vhost, 1);
  8. + ssin.sin_addr.s_addr = libnet_name2addr4(NULL, vhost, 1);
  9. free(vhost);
  10. if (ssin.sin_addr.s_addr == ntohl(INADDR_LOOPBACK) ||
  11. @@ -510,7 +510,7 @@ main(int argc, char *argv[])
  12. argv += optind;
  13. if (argc == 1) {
  14. - if ((static_host = libnet_name_resolve(argv[0], 1)) == -1)
  15. + if ((static_host = libnet_name2addr4(NULL, argv[0], 1)) == -1)
  16. usage();
  17. }
  18. else if (argc != 0) usage();