Ignore:
Timestamp:
02/24/10 08:39:52 (11 years ago)
Author:
alno
Message:

WebIf:

  • reject all empty token is a bad idea
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-config.c

    r1667 r1668  
    305305void chk_t_global(char *token, char *value)
    306306{
    307     // no value -> no parsing
    308     if (strlen(value) == 0)
    309         return;
    310 
    311307    if (!strcmp(token, "disablelog")) { cfg->disablelog = atoi(value); return; }
    312   if (!strcmp(token, "serverip")) { cfg->srvip=inet_addr(value); return; }
     308
     309    if (!strcmp(token, "serverip")) {
     310        if (strlen(value) == 0) {
     311            return;
     312        } else {
     313            cfg->srvip=inet_addr(value);
     314            return;
     315        }
     316    }
     317
    313318  if (!strcmp(token, "logfile")) {
    314319          if (cfg->logfile != NULL) {
Note: See TracChangeset for help on using the changeset viewer.