Changeset 31715


Ignore:
Timestamp:
Mar 20, 2017, 11:51:46 PM (8 days ago)
Author:
brainslayer
Message:

fix wrong field length. its now checked numeric, so it cannot overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/validate/webs.c

    r31714 r31715  
    39623962        case 1:
    39633963                // dyndns
    3964                 snprintf(_username, sizeof(_username), "%s", "ddns_username");
    3965                 snprintf(_passwd, sizeof(_passwd), "%s", "ddns_passwd");
    3966                 snprintf(_hostname, sizeof(_hostname), "%s", "ddns_hostname");
     3964                sprintf(_username, "ddns_username");
     3965                sprintf(_passwd, "ddns_passwd");
     3966                sprintf(_hostname, "ddns_hostname");
    39673967
    39683968        case 2:
     
    39783978                // 3322 dynamic : added botho 30/07/06
    39793979                // easydns
    3980                 snprintf(_username, sizeof(_username), "ddns_username_%d", enable);
    3981                 snprintf(_passwd, sizeof(_passwd), "ddns_passwd_%d", enable);
    3982                 snprintf(_hostname, sizeof(_hostname), "ddns_hostname_%d", enable);
     3980                sprintf(_username, "ddns_username_%d", enable);
     3981                sprintf(_passwd, "ddns_passwd_%d", enable);
     3982                sprintf(_hostname, "ddns_hostname_%d", enable);
    39833983
    39843984                break;
Note: See TracChangeset for help on using the changeset viewer.