summaryrefslogtreecommitdiff
path: root/package/snort/patches/patch-src_detection-plugins_sp_tcp_win_check_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/snort/patches/patch-src_detection-plugins_sp_tcp_win_check_c')
-rw-r--r--package/snort/patches/patch-src_detection-plugins_sp_tcp_win_check_c26
1 files changed, 0 insertions, 26 deletions
diff --git a/package/snort/patches/patch-src_detection-plugins_sp_tcp_win_check_c b/package/snort/patches/patch-src_detection-plugins_sp_tcp_win_check_c
deleted file mode 100644
index c1df26aad..000000000
--- a/package/snort/patches/patch-src_detection-plugins_sp_tcp_win_check_c
+++ /dev/null
@@ -1,26 +0,0 @@
---- snort-2.8.5.2.orig/src/detection-plugins/sp_tcp_win_check.c 2009-05-07 00:28:39.000000000 +0200
-+++ snort-2.8.5.2/src/detection-plugins/sp_tcp_win_check.c 2010-01-19 20:06:29.000000000 +0100
-@@ -196,19 +196,19 @@ void ParseTcpWin(char *data, OptTreeNode
- ds_ptr->not_flag = 1;
- }
-
-- if(index(data, (int) 'x') == NULL && index(data, (int)'X') == NULL)
-+ if(strchr(data, (int) 'x') == NULL && strchr(data, (int)'X') == NULL)
- {
- win_size = atoi(data);
- }
- else
- {
-- if(index(data,(int)'x'))
-+ if(strchr(data,(int)'x'))
- {
-- win_size = (uint16_t) strtol((index(data, (int)'x')+1), NULL, 16);
-+ win_size = (uint16_t) strtol((strchr(data, (int)'x')+1), NULL, 16);
- }
- else
- {
-- win_size = (uint16_t) strtol((index(data, (int)'X')+1), NULL, 16);
-+ win_size = (uint16_t) strtol((strchr(data, (int)'X')+1), NULL, 16);
- }
- }
-