diff options
author | Bill Fumerola <billf@FreeBSD.org> | 2002-07-07 20:11:57 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 2002-07-07 20:11:57 +0000 |
commit | 915cbe8a056d640abbb0edd28e6fd44a405d7a0f (patch) | |
tree | 0518e81178d9c1c6b77f52d79133f193c635e289 /security/portscanner/files/patch-ab | |
parent | 5abcd201e6912de54eedb1cc43209f09faee2b21 (diff) | |
download | ports-915cbe8a056d640abbb0edd28e6fd44a405d7a0f.tar.gz ports-915cbe8a056d640abbb0edd28e6fd44a405d7a0f.zip |
upgrade from 1.0 to 1.2
Submitted by: fenner's distfile survey
Notes
Notes:
svn path=/head/; revision=62606
Diffstat (limited to 'security/portscanner/files/patch-ab')
-rw-r--r-- | security/portscanner/files/patch-ab | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/security/portscanner/files/patch-ab b/security/portscanner/files/patch-ab new file mode 100644 index 000000000000..b92c4258e856 --- /dev/null +++ b/security/portscanner/files/patch-ab @@ -0,0 +1,29 @@ +--- portscanner.c.orig Wed Aug 19 10:37:44 1998 ++++ portscanner.c Sun Jul 7 13:16:39 2002 +@@ -25,8 +25,8 @@ + /***********************************************************/ + + #include <stdio.h> +-#include <sys/socket.h> + #include <sys/types.h> ++#include <sys/socket.h> + #include <netinet/in.h> + #include <unistd.h> + #include <netdb.h> +@@ -268,7 +268,7 @@ + goodproto = 0; + } else address2.sin_port = htons(base_port+current_port); + +- if (!finished) ++ if (!finished) { + if (connect(sock, (struct sockaddr *)&address2, sizeof(address2)) == 0) { + switch (verbose) { + case 0: if (strobe) +@@ -312,6 +312,7 @@ + finished = 1; + } + /* fprintf(stderr,"current_port: %d,b: %d,e:%d,b+c:%d\n", current_port, base_port,end_port,base_port+current_port); */ ++ } + } + + if (verbose == 2) printf("Port scan finished !\n"); |