mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Yeah, simplify that logic a bit...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -684,7 +684,8 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
|
||||
}
|
||||
|
||||
/* We want requests to start with the (optional) prefix and '/' */
|
||||
if (((l = strlen(prefix)) || !*prefix) && !strncasecmp(uri, prefix, l) && uri[l] == '/') {
|
||||
l = strlen(prefix);
|
||||
if (!strncasecmp(uri, prefix, l) && uri[l] == '/') {
|
||||
uri += l + 1;
|
||||
/* scan registered uris to see if we match one. */
|
||||
AST_RWLIST_RDLOCK(&uris);
|
||||
|
Reference in New Issue
Block a user