summaryrefslogtreecommitdiff
path: root/security/nmap/files/patch-nsock::src::nsock_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/nmap/files/patch-nsock::src::nsock_event.c')
-rw-r--r--security/nmap/files/patch-nsock::src::nsock_event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/nmap/files/patch-nsock::src::nsock_event.c b/security/nmap/files/patch-nsock::src::nsock_event.c
new file mode 100644
index 000000000000..e2b50646b66d
--- /dev/null
+++ b/security/nmap/files/patch-nsock::src::nsock_event.c
@@ -0,0 +1,13 @@
+--- nsock/src/nsock_event.c.orig Fri Oct 3 15:33:05 2003
++++ nsock/src/nsock_event.c Fri Oct 3 15:32:31 2003
+@@ -242,8 +242,9 @@
+ int type_code = (int) type;
+ unsigned long serial = ms->next_event_serial++;
+ unsigned long max_serial_allowed;
+- int shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS;
++ int shiftbits;
+ assert(type <= 3);
++ shiftbits = sizeof(nsock_event_id) * 8 - TYPE_CODE_NUM_BITS;
+
+ max_serial_allowed = ( 1 << shiftbits ) - 1;
+ if (serial == max_serial_allowed ) {