mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
fix stack overflow with linphonec without readline, asking for password
This commit is contained in:
parent
9fe0c5b8d2
commit
6cf6ce675d
1 changed files with 6 additions and 0 deletions
|
|
@ -794,11 +794,17 @@ linphonec_finish(int exit_status)
|
|||
int
|
||||
linphonec_prompt_for_auth_final(LinphoneCore *lc)
|
||||
{
|
||||
static int reentrancy=0;
|
||||
char *input, *iptr;
|
||||
char auth_prompt[256];
|
||||
#ifdef HAVE_READLINE
|
||||
rl_hook_func_t *old_event_hook;
|
||||
#endif
|
||||
|
||||
if (reentrancy!=0) return 0;
|
||||
|
||||
reentrancy++;
|
||||
|
||||
LinphoneAuthInfo *pending_auth=auth_stack.elem[auth_stack.nitems-1];
|
||||
|
||||
snprintf(auth_prompt, 256, "Password for %s on %s: ",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue