+Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
+
+ * Remove server/router operator privileges in DETACH command,
+ since it's possible to resume to server where these
+ privileges would not be allowed for the client. Affected
+ file silcd/command.c.
+
Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
* Buffer overflow with CUMODE command's mode->mode character
the core library, client and server. Maybe implementations of
RFC 2425 and RFC 2426 to make it complete.
- o Remove OPER and SILCOPER rights in DETACH.
-
o Backup router related issues:
o Add special handling in router and server for "connection
SILC_SERVER_COMMAND_CHECK(SILC_COMMAND_DETACH, cmd, 0, 0);
+ /* Remove operator privileges, since the client may resume in some
+ other server which to it does not have operator privileges. */
+ client->mode &= ~(SILC_UMODE_SERVER_OPERATOR |
+ SILC_UMODE_ROUTER_OPERATOR);
+
/* Send the user mode notify to notify that client is detached */
client->mode |= SILC_UMODE_DETACHED;
client->data.status &= ~SILC_IDLIST_STATUS_RESUMED;