Changeset 1674


Ignore:
Timestamp:
02/24/10 12:08:55 (11 years ago)
Author:
merek
Message:

Backport bugfix in expdate config handling from WebIf branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-config.c

    r1672 r1674  
    850850  if (!strcmp(token, "expdate"))
    851851  {
     852        if (!value[0]) {
     853                account->expirationdate=(time_t)NULL;
     854                return;
     855        }
    852856    struct tm cstime;
    853857    memset(&cstime,0,sizeof(cstime));
     
    860864        case 2: cstime.tm_mday=atoi(ptr1);      break;
    861865      }
    862     }   
     866    }
    863867    account->expirationdate=mktime(&cstime);
    864868    return;
Note: See TracChangeset for help on using the changeset viewer.