summaryrefslogtreecommitdiff
path: root/net/3proxy/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/3proxy/patches/patch-ac')
-rw-r--r--net/3proxy/patches/patch-ac34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/3proxy/patches/patch-ac b/net/3proxy/patches/patch-ac
new file mode 100644
index 00000000000..caef49b394f
--- /dev/null
+++ b/net/3proxy/patches/patch-ac
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.1 2008/02/27 16:14:25 apb Exp $
+
+--- src/webadmin.c.orig 2006-03-10 21:36:33.000000000 +0200
++++ src/webadmin.c
+@@ -311,12 +311,12 @@ void * adminchild(void * data) {
+ sb = strchr(buf, ':');
+ if(!sb)continue;
+ ++sb;
+- while(isspace(*sb))sb++;
++ while(isspace((unsigned char)*sb))sb++;
+ if(!*sb || strncasecmp(sb, "basic", 5)){
+ continue;
+ }
+ sb+=5;
+- while(isspace(*sb))sb++;
++ while(isspace((unsigned char)*sb))sb++;
+ i = de64((unsigned char *)sb, (unsigned char *)username, 255);
+ if(i<=0)continue;
+ username[i] = 0;
+@@ -332,12 +332,12 @@ void * adminchild(void * data) {
+ }
+ else if(i > 15 && (!strncasecmp(buf, "content-length:", 15))){
+ sb = buf + 15;
+- while(isspace(*sb))sb++;
++ while(isspace((unsigned char)*sb))sb++;
+ contentlen = atoi(sb);
+ }
+ else if(i > 13 && (!strncasecmp(buf, "content-type:", 13))){
+ sb = buf + 13;
+- while(isspace(*sb))sb++;
++ while(isspace((unsigned char)*sb))sb++;
+ if(!strncasecmp(sb, "x-www-form-urlencoded", 21)) isform = 1;
+ }
+ }