summaryrefslogtreecommitdiffstats
path: root/net/gspoof/files/patch-console.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/gspoof/files/patch-console.c')
-rw-r--r--net/gspoof/files/patch-console.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/gspoof/files/patch-console.c b/net/gspoof/files/patch-console.c
new file mode 100644
index 0000000..79b02c9
--- /dev/null
+++ b/net/gspoof/files/patch-console.c
@@ -0,0 +1,26 @@
+--- console.c.orig Wed Sep 25 04:20:25 2002
++++ console.c Wed May 7 03:42:30 2003
+@@ -333,7 +333,11 @@
+ fgets(value, 20, stdin);
+ seq = atol(value);
+ }
++#ifdef __FreeBSD__
++ while (atoi(value) < 0 || atoi(value) > 4294970000);
++#else
+ while (atoi(value) < 0 || atoll(value) > 4294970000);
++#endif
+ }
+ else if (!strcmp ("3.5", cmd))
+ {
+@@ -343,7 +347,11 @@
+ fgets(value, 20, stdin);
+ ack = atol(value);
+ }
++#ifdef __FreeBSD__
++ while (atoi(value) < 0 || atoi(value) > 4294970000);
++#else
+ while (atoi(value) < 0 || atoll(value) > 4294970000);
++#endif
+ }
+ else if (!strcmp ("3.6", cmd))
+ {
OpenPOWER on IntegriCloud