Fix segfault in mod_conference
This was introduced by commit a4408e62a6
.
FS-5612 --resolve
This commit is contained in:
parent
f7d4ff390a
commit
43a11b00aa
|
@ -7670,7 +7670,9 @@ SWITCH_STANDARD_APP(conference_function)
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!pin_valid && pin_retries && status == SWITCH_STATUS_SUCCESS) {
|
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;
|
switch_status_t pstatus = SWITCH_STATUS_FALSE;
|
||||||
|
|
||||||
/* be friendly */
|
/* be friendly */
|
||||||
|
|
Loading…
Reference in New Issue