summaryrefslogtreecommitdiff
path: root/package/dsniff/patches/patch-sshmitm_c
blob: d4b63b378c206739c369ee43334f038f7c7b8fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- dsniff-2.4.orig/sshmitm.c	2001-03-15 09:33:04.000000000 +0100
+++ dsniff-2.4/sshmitm.c	2009-12-11 12:57:39.000000000 +0100
@@ -389,7 +389,7 @@ main(int argc, char *argv[])
 	if (argc < 1)
 		usage();
 	
-	if ((ip = libnet_name_resolve(argv[0], 1)) == -1)
+	if ((ip = libnet_name2addr4(NULL, argv[0], LIBNET_RESOLVE)) == -1)
 		usage();
 
 	if (argc == 2 && (rport = atoi(argv[1])) == 0)