Fixed passphrase asking in OPER/SILCOPER commands.
authorPekka Riikonen <priikone@silcnet.org>
Sat, 28 Apr 2007 10:53:55 +0000 (10:53 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 28 Apr 2007 10:53:55 +0000 (10:53 +0000)
lib/silcclient/command.c

index 88bd9411eb2291a79003a45575997806372a5113..19b9fc6c07646ace947e14477d9593e2b893e639 100644 (file)
@@ -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;
 }