if (crcount == 2) {
char *next;
char *cur = mbuf;
- bytes = 0;
while (cur) {
if ((next = strchr(cur, '\r')) || (next = strchr(cur, '\n'))) {
while (*next == '\r' || *next == '\n') {
switch_core_hash_init(&listener->allowed_event_hash);
edup = strdup(allowed_events);
- cur = edup;
switch_assert(edup);
switch_core_hash_init(&listener->allowed_api_hash);
edup = strdup(allowed_api);
- cur = edup;
if (strchr(edup, ' ')) {
delim = ' ';
if (fmt) {
switch_snprintf(reply, reply_len, "-ERR invalid uuid");
goto done;
- } else {
- fmt = uuid;
}
}