Check for NULL motd.
authorPekka Riikonen <priikone@silcnet.org>
Wed, 29 Oct 2003 10:06:29 +0000 (10:06 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 29 Oct 2003 10:06:29 +0000 (10:06 +0000)
apps/silcmap/silcmap_html.c

index 834b446484bf5eb47f5f831a68ed683716e2534d..6e3c8577ddecaf6206f2764c62776fc203189165 100644 (file)
@@ -281,7 +281,7 @@ bool silc_map_writehtml(SilcMap map, SilcMapConnection mapconn)
   }
 
   /* motd */
-  if (mapconn->motd) {
+  if (mapconn->motd && mapconn->data.motd) {
     fprintf(fp, "&nbsp;<br /><hr ><br />\n");
     fprintf(fp, "<b>Message of the Day:</b>&nbsp;<br />\n");