diff options
author | Sofian Brabez <sbz@FreeBSD.org> | 2014-07-22 12:33:36 +0000 |
---|---|---|
committer | Sofian Brabez <sbz@FreeBSD.org> | 2014-07-22 12:33:36 +0000 |
commit | 2e875105323361b0bb01abf7a11128835825d298 (patch) | |
tree | cbdf82280505965ba43404b81015df8104b28d5e /security/dsniff/files/patch-urlsnarf.c | |
parent | - Update to version 0.46, stagify, and cleanup the port (diff) |
- Update to 2.4b1
- Fix build with libnet11 and libnids (introduced by r361784)
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=362536
Diffstat (limited to 'security/dsniff/files/patch-urlsnarf.c')
-rw-r--r-- | security/dsniff/files/patch-urlsnarf.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/dsniff/files/patch-urlsnarf.c b/security/dsniff/files/patch-urlsnarf.c new file mode 100644 index 000000000000..89147dd046a4 --- /dev/null +++ b/security/dsniff/files/patch-urlsnarf.c @@ -0,0 +1,19 @@ +--- ./urlsnarf.c.orig 2001-03-15 10:26:13.000000000 +0100 ++++ ./urlsnarf.c 2014-07-22 13:20:14.000000000 +0200 +@@ -145,14 +145,14 @@ + if (user == NULL) + user = "-"; + if (vhost == NULL) +- vhost = libnet_host_lookup(addr->daddr, Opt_dns); ++ vhost = libnet_addr2name4(addr->daddr, Opt_dns); + if (referer == NULL) + referer = "-"; + if (agent == NULL) + agent = "-"; + + printf("%s - %s [%s] \"%s http://%s%s\" - - \"%s\" \"%s\"\n", +- libnet_host_lookup(addr->saddr, Opt_dns), ++ libnet_addr2name4(addr->saddr, Opt_dns), + user, timestamp(), req, vhost, uri, referer, agent); + } + fflush(stdout); |