summaryrefslogtreecommitdiff
path: root/package/dsniff/patches/patch-webmitm_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/dsniff/patches/patch-webmitm_c')
-rw-r--r--package/dsniff/patches/patch-webmitm_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/dsniff/patches/patch-webmitm_c b/package/dsniff/patches/patch-webmitm_c
new file mode 100644
index 000000000..2ff4d2331
--- /dev/null
+++ b/package/dsniff/patches/patch-webmitm_c
@@ -0,0 +1,20 @@
+--- dsniff-2.4.orig/webmitm.c 2001-03-17 09:35:05.000000000 +0100
++++ dsniff-2.4/webmitm.c 2009-12-11 13:05:28.000000000 +0100
+@@ -242,7 +242,7 @@ server_init(char *buf, int size)
+ word = buf_tok(&msg, "/", 1);
+ vhost = buf_strdup(word);
+ }
+- ssin.sin_addr.s_addr = libnet_name_resolve(vhost, 1);
++ ssin.sin_addr.s_addr = libnet_name2addr4(NULL, vhost, 1);
+ free(vhost);
+
+ if (ssin.sin_addr.s_addr == ntohl(INADDR_LOOPBACK) ||
+@@ -510,7 +510,7 @@ main(int argc, char *argv[])
+ argv += optind;
+
+ if (argc == 1) {
+- if ((static_host = libnet_name_resolve(argv[0], 1)) == -1)
++ if ((static_host = libnet_name2addr4(NULL, argv[0], 1)) == -1)
+ usage();
+ }
+ else if (argc != 0) usage();