From: Pekka Riikonen Date: Sat, 28 Apr 2007 10:53:55 +0000 (+0000) Subject: Fixed passphrase asking in OPER/SILCOPER commands. X-Git-Tag: silc.toolkit.1.1.beta1~19 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=70847a321089146406536315e4d4e87122a06bce Fixed passphrase asking in OPER/SILCOPER commands. --- diff --git a/lib/silcclient/command.c b/lib/silcclient/command.c index 88bd9411..19b9fc6c 100644 --- a/lib/silcclient/command.c +++ b/lib/silcclient/command.c @@ -2263,6 +2263,8 @@ SILC_FSM_STATE(silc_client_command_oper) return SILC_FSM_FINISH; } + silc_fsm_next(fsm, silc_client_command_oper_send); + /* Get passphrase */ if (cmd->argc < 3) { oper = silc_calloc(1, sizeof(*oper)); @@ -2274,7 +2276,6 @@ SILC_FSM_STATE(silc_client_command_oper) silc_client_command_oper_cb, cmd)); } - silc_fsm_next(fsm, silc_client_command_oper_send); return SILC_FSM_CONTINUE; } @@ -2293,6 +2294,8 @@ SILC_FSM_STATE(silc_client_command_silcoper) return SILC_FSM_FINISH; } + silc_fsm_next(fsm, silc_client_command_oper_send); + /* Get passphrase */ if (cmd->argc < 3) { oper = silc_calloc(1, sizeof(*oper)); @@ -2304,7 +2307,6 @@ SILC_FSM_STATE(silc_client_command_silcoper) silc_client_command_oper_cb, cmd)); } - silc_fsm_next(fsm, silc_client_command_oper_send); return SILC_FSM_CONTINUE; }