Signed-off-by: Andy Green <andy.green@linaro.org>
const struct lws_extension *ext;
char ext_name[128];
const char *c;
+ char ignore;
int more = 1;
void *v;
#endif
c = (char *)context->serv_buf;
n = 0;
+ ignore = 0;
while (more) {
if (*c && (*c != ',' && *c != ' ' && *c != '\t')) {
+ if (*c == ';')
+ ignore = 1;
+ if (ignore) {
+ c++;
+ continue;
+ }
ext_name[n] = *c++;
if (n < sizeof(ext_name) - 1)
n++;
continue;
}
ext_name[n] = '\0';
+ ignore = 0;
if (!*c)
more = 0;
else {
struct lws_context *context = wsi->context;
int ext_count = 0;
int more = 1;
+ char ignore;
/*
* Figure out which extensions the client has that we want to
lwsl_parser("WSI_TOKEN_EXTENSIONS = '%s'\n", c);
wsi->count_active_extensions = 0;
n = 0;
+ ignore = 0;
while (more) {
if (*c && (*c != ',' && *c != ' ' && *c != '\t')) {
+ if (ext_name[n] == ';')
+ ignore = 1;
+ if (ignore) {
+ c++;
+ continue;
+ }
ext_name[n] = *c++;
if (n < sizeof(ext_name) - 1)
n++;
continue;
}
ext_name[n] = '\0';
+
+ ignore = 0;
if (!*c)
more = 0;
else {