From 70847a321089146406536315e4d4e87122a06bce Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 28 Apr 2007 10:53:55 +0000 Subject: [PATCH] Fixed passphrase asking in OPER/SILCOPER commands. --- lib/silcclient/command.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.24.0