Fix strncasecmp length, thx woof

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14258 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-07-15 16:45:12 +00:00
parent d8793904ec
commit 42cfedca6b
1 changed files with 1 additions and 1 deletions

View File

@ -1801,7 +1801,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
} else {
switch_snprintf(reply, reply_len, "-ERR not controlling a session");
}
} else if (!strncasecmp(cmd, "nolinger", 6)) {
} else if (!strncasecmp(cmd, "nolinger", 8)) {
if (listener->session) {
switch_clear_flag_locked(listener, LFLAG_LINGER);
switch_snprintf(reply, reply_len, "+OK will not linger");