silcclient: handle command timeout error correctly
[silc.git] / lib / silcclient / command_reply.c
index 57c339aaf334adbb5e1a3d3699a000d6039cf46a..a3838f4e5b04b869f8eb1c958ebdec50a4050b63 100644 (file)
@@ -246,6 +246,7 @@ SILC_FSM_STATE(silc_client_command_reply_timeout)
 
   /* Timeout, reply not received in timely fashion */
   silc_list_del(conn->internal->pending_commands, cmd);
+  cmd->status = SILC_STATUS_OK;
   ERROR_CALLBACK(SILC_STATUS_ERR_TIMEDOUT);
   return SILC_FSM_FINISH;
 }