Fixed buffer overflow bug at pickup feature
[lcr.git] / gsm_conf.c
index f5af15a..f25cf85 100644 (file)
@@ -29,13 +29,10 @@ int gsm_conf(struct gsm_conf *gsm_conf, char *conf_error)
 
        /* set defaults */
        SCPY(gsm_conf->debug, "");
-       SCPY(gsm_conf->interface_bsc, "mISDN_l1loop.1");
-       SCPY(gsm_conf->interface_lcr, "mISDN_l1loop.2");
        SCPY(gsm_conf->hlr, "hlr.sqlite3");
        SCPY(gsm_conf->openbsc_cfg, "openbsc.cfg");
        gsm_conf->reject_cause = 0;
        gsm_conf->keep_l2 = 0;
-       gsm_conf->noemergshut = 0;
 
        SPRINT(filename, "%s/gsm.conf", CONFIG_DATA);
 
@@ -106,22 +103,6 @@ int gsm_conf(struct gsm_conf *gsm_conf, char *conf_error)
                        SCPY(gsm_conf->debug, params[0]);
 
                } else
-               if (!strcmp(option,"interface-bsc")) {
-                       if (params[0][0]==0) {
-                               UPRINT(conf_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);
-                               goto error;
-                       }
-                       SCPY(gsm_conf->interface_bsc, params[0]);
-
-               } else
-               if (!strcmp(option,"interface-lcr")) {
-                       if (params[0][0]==0) {
-                               UPRINT(conf_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);
-                               goto error;
-                       }
-                       SCPY(gsm_conf->interface_lcr, params[0]);
-
-               } else
                if (!strcmp(option,"config")) {
                        if (params[0][0]==0) {
                                UPRINT(conf_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);
@@ -149,9 +130,6 @@ int gsm_conf(struct gsm_conf *gsm_conf, char *conf_error)
                        gsm_conf->keep_l2 = 1;
 
                } else
-               if (!strcmp(option,"no-mergency-shutdown")) {
-                       gsm_conf->noemergshut = 1;
-               } else
                if (!strcmp(option,"pcapfile")) {
                        if (params[0][0]==0) {
                                UPRINT(conf_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);