- server = (SILC_SERVER_REC*)conn->context;
- SILC_VERIFY(server);
- if (!server) {
- if (completion)
- completion(FALSE, context);
- return;
+ if (conn_type != SILC_CONN_CLIENT) {
+ server = (SILC_SERVER_REC*)conn->context;
+ SILC_VERIFY(server);
+ if (!server) {
+ if (completion)
+ completion(FALSE, context);
+ return;
+ }