Fix segfault in mod_conference

This was introduced by commit a4408e62a6.

FS-5612 --resolve
This commit is contained in:
Anthony Minessale 2013-07-16 19:28:02 -05:00 committed by Travis Cross
parent f7d4ff390a
commit 43a11b00aa
1 changed files with 3 additions and 1 deletions

View File

@ -7670,7 +7670,9 @@ SWITCH_STANDARD_APP(conference_function)
}
while (!pin_valid && pin_retries && status == SWITCH_STATUS_SUCCESS) {
int maxpin = strlen(dpin) > strlen(mdpin) ? strlen(dpin) : strlen(mdpin);
size_t dpin_length = dpin ? strlen(dpin) : 0;
size_t mdpin_length = mdpin ? strlen(mdpin) : 0;
int maxpin = dpin_length > mdpin_length ? dpin_length : mdpin_length;
switch_status_t pstatus = SWITCH_STATUS_FALSE;
/* be friendly */