mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-19 01:45:32 +00:00
CID: 1211951 mod_rayo - fix unlikely dereference of null pointer
This commit is contained in:
parent
2363269821
commit
2c74771c2f
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* mod_rayo for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
||||
* Copyright (C) 2013, Grasshopper
|
||||
* Copyright (C) 2013-2014, Grasshopper
|
||||
*
|
||||
* Version: MPL 1.1
|
||||
*
|
||||
@ -1227,6 +1227,10 @@ static int is_match_end(pcre *compiled_regex, const char *input)
|
||||
const char *search = strchr(search_set, input[input_size - 1]); /* start with last digit in input */
|
||||
int i = 0;
|
||||
|
||||
if (!search) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* For each digit in search_set, check if input + search_set digit is a potential match.
|
||||
If so, then this is not a match end.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user