forked from Mirrors/freeswitch
build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8897 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
98479fa633
commit
ffb2e317bb
@ -544,7 +544,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
|
||||
if ( (argc = switch_separate_string(data, ',', argv, (sizeof(argv) / sizeof(argv[0])))) ) {
|
||||
for ( i = 0; i < argc; i++ ) {
|
||||
/* If one of the group matches, then ok */
|
||||
if ( !strcmp(argv[i], require_group)) {
|
||||
if (argv[i] && !strcmp(argv[i], require_group)) {
|
||||
ok = 1;
|
||||
}
|
||||
}
|
||||
|
@ -1097,8 +1097,7 @@ SWITCH_DECLARE(int) switch_build_uri(char *uri,
|
||||
}
|
||||
|
||||
if (getnameinfo(addr, sa->salen, host, sizeof(host), serv, sizeof(serv),
|
||||
(flags & SWITCH_URI_NUMERIC_HOST) ? NI_NUMERICHOST : 0 |
|
||||
(flags & SWITCH_URI_NUMERIC_PORT) ? NI_NUMERICSERV : 0) != 0) {
|
||||
((flags & SWITCH_URI_NUMERIC_HOST) ? NI_NUMERICHOST : 0) | ((flags & SWITCH_URI_NUMERIC_PORT) ? NI_NUMERICSERV : 0)) != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user