summaryrefslogtreecommitdiff
path: root/ftp/proftpd-devel/files/extra-patch-cyrillic-fix-netio.c
blob: 58f6f3d5705674a12680f772ed79b49f2d361495 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- ./src/netio.c.orig  Sun Oct 10 00:46:22 2004
+++ ./src/netio.c       Thu Oct 12 15:17:22 2006
@@ -901,47 +901,6 @@
       cp = *pbuf->current++;
       pbuf->remaining++;

-      switch (mode) {
-        case IAC:
-          switch (cp) {
-            case WILL:
-            case WONT:
-            case DO:
-            case DONT:
-              mode = cp;
-              continue;
-
-            case IAC:
-              mode = 0;
-              break;
-
-            default:
-              /* Ignore */
-              mode = 0;
-              continue;
-          }
-          break;
-
-        case WILL:
-        case WONT:
-          pr_netio_printf(out_nstrm, "%c%c%c", IAC, DONT, cp);
-          mode = 0;
-          continue;
-
-        case DO:
-        case DONT:
-          pr_netio_printf(out_nstrm, "%c%c%c", IAC, WONT, cp);
-          mode = 0;
-          continue;
-
-        default:
-          if (cp == IAC) {
-            mode = cp;
-            continue;
-          }
-          break;
-      }
-
       *bp++ = cp;
       buflen--;
     }