updates.
[silc.git] / apps / irssi / src / silc / core / clientconfig.c
index 5626f2a0cfa254e283e4215af8063d0fb76f1f1d..450020a3e6cf963e9866fd33edc39d52c227c616 100644 (file)
@@ -180,6 +180,12 @@ int silc_client_config_parse(SilcClientConfig config, SilcBuffer buffer,
        * Start of a configuration line
        */
 
+      if (!cptr) {
+       fprintf(stderr, "%s:%d: Unknown start of a section `%s'\n", 
+                       config->filename, linenum, cp);
+       return FALSE;
+      }        
+
       /* Handle config section */
       if (cptr->type != SILC_CLIENT_CONFIG_SECTION_TYPE_NONE) {