Files
pkgsrc-ng/net/3proxy/patches/patch-ac
2016-01-21 23:41:46 +01:00

35 lines
1.1 KiB
Plaintext

$NetBSD: patch-ac,v 1.2 2015/04/06 02:26:53 rodent Exp $
--- src/webadmin.c.orig 2015-02-17 13:07:21.000000000 +0000
+++ src/webadmin.c
@@ -375,12 +375,12 @@ void * adminchild(struct clientparam* pa
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;
@@ -396,12 +396,12 @@ void * adminchild(struct clientparam* pa
}
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;
}
}