silcclient: handle command timeout error correctly
authorPekka Riikonen <priikone@silcnet.org>
Tue, 6 May 2014 15:24:58 +0000 (18:24 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 6 May 2014 15:24:58 +0000 (18:24 +0300)
commit02745be76c1b9cee66b66a5e5bcd79b4b7f6d2a2
tree674b39a1755475b2ffdc09b316dad8b588089a75
parent4b60068a4335802516a283baab8faf9c0715234a
silcclient: handle command timeout error correctly

If command which can return a list of entries such as the LIST command
timeouts the cmd->status may be something other than SILC_STATUS_OK,
ie. _LIST_END for example which then means ERROR_CALLBACK won't update
the SILC_STATUS_ERR_TIMEOUT correctly to the cmd context.  This can
crash the application handling the command reply.  Clear the cmd->status
in case the command timedout.
lib/silcclient/command_reply.c