From: Pekka Riikonen Date: Wed, 29 Oct 2003 10:06:29 +0000 (+0000) Subject: Check for NULL motd. X-Git-Tag: 1.2.beta1~811 X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=commitdiff_plain;h=481738c55ba92000eefec4a7b2cafd2cec8441e5 Check for NULL motd. --- diff --git a/apps/silcmap/silcmap_html.c b/apps/silcmap/silcmap_html.c index 834b4464..6e3c8577 100644 --- a/apps/silcmap/silcmap_html.c +++ b/apps/silcmap/silcmap_html.c @@ -281,7 +281,7 @@ bool silc_map_writehtml(SilcMap map, SilcMapConnection mapconn) } /* motd */ - if (mapconn->motd) { + if (mapconn->motd && mapconn->data.motd) { fprintf(fp, " 


\n"); fprintf(fp, "Message of the Day: 
\n");