Skip to content

Commit

Permalink
fix stack overflow with linphonec without readline, asking for password
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Morlat committed Apr 22, 2011
1 parent 9fe0c5b commit 6cf6ce6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions console/linphonec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: ",
Expand Down

0 comments on commit 6cf6ce6

Please sign in to comment.