Ticket #21225: patch-webmitm.c.diff
File patch-webmitm.c.diff, 624 bytes (added by hsivank@…, 15 years ago) |
---|
-
webmitm.c
old new 242 242 word = buf_tok(&msg, "/", 1); 243 243 vhost = buf_strdup(word); 244 244 } 245 ssin.sin_addr.s_addr = libnet_name _resolve(vhost, 1);245 ssin.sin_addr.s_addr = libnet_name2addr4(NULL, vhost, 1); 246 246 free(vhost); 247 247 248 248 if (ssin.sin_addr.s_addr == ntohl(INADDR_LOOPBACK) || … … 510 510 argv += optind; 511 511 512 512 if (argc == 1) { 513 if ((static_host = libnet_name _resolve(argv[0], 1)) == -1)513 if ((static_host = libnet_name2addr4(NULL, argv[0], 1)) == -1) 514 514 usage(); 515 515 } 516 516 else if (argc != 0) usage();