Motd reply fix.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 8 May 2005 14:04:42 +0000 (14:04 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 8 May 2005 14:04:42 +0000 (14:04 +0000)
apps/silcmap/silcmap_client.c

index 651bd5647b827a74001f4272cf487d6d378af43c..a46f979607ac115c8829bd0c73beb9652de54715 100644 (file)
@@ -440,8 +440,8 @@ silc_command_reply(SilcClient client, SilcClientConnection conn,
 
       SILC_LOG_DEBUG(("MOTD command reply"));
 
-      mapconn->data.motd = strdup(motd);
-      mapconn->motd_received = TRUE;
+      mapconn->data.motd = motd ? strdup(motd) : NULL;
+      mapconn->motd_received = motd ? TRUE : FALSE;
     }
     break;