~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/enum/enum.c

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        int i;
257
257
        char c;
258
258
        
259
 
        if ((_user->len > 2) && (_user->len < 17) && ((_user->s)[0] == '+')) {
 
259
        if ((_user->len > 2) && (_user->len < MAX_NUM_LEN) && ((_user->s)[0] == '+')) {
260
260
                for (i = 1; i < _user->len; i++) {
261
261
                        c = (_user->s)[i];
262
262
                        if ((c < '0') || (c > '9')) return -1;
309
309
        struct naptr_rdata* naptr;
310
310
 
311
311
        str pattern, replacement, result;
312
 
        char string[17];
 
312
        char string[MAX_NUM_LEN];
313
313
 
314
314
        if (parse_from_header(_msg) < 0) {
315
315
            LM_ERR("Failed to parse From header\n");
687
687
                q = q - 10;
688
688
                curr_prio = priority;
689
689
            }
690
 
            if (append_branch(_msg, &result, 0, 0, q, 0, 0, 0, 0) == -1) {
 
690
            if (append_branch(_msg, &result, 0, 0, q, 0, 0, 0, 0, 0, 0) == -1) {
691
691
                goto done;
692
692
            }
693
693
        }
754
754
        char *user_s;
755
755
        int user_len, i, j;
756
756
        char name[MAX_DOMAIN_SIZE];
757
 
        char string[17];
 
757
        char string[MAX_NUM_LEN];
758
758
 
759
759
        LM_DBG("enum_query on suffix <%.*s> service <%.*s>\n",
760
760
               suffix->len, suffix->s, service->len, service->s);
818
818
        int cc_len;
819
819
        struct rdata* head;
820
820
 
821
 
        char string[17];
 
821
        char string[MAX_NUM_LEN];
822
822
 
823
823
        str *suffix, *service;
824
824
 
1137
1137
                                q = q - 10;
1138
1138
                                curr_prio = priority;
1139
1139
                        }
1140
 
                        if (append_branch(_msg, &result, 0, 0, q, 0, 0, 0, 0)
 
1140
                        if (append_branch(_msg, &result, 0, 0, q, 0, 0, 0, 0, 0, 0)
1141
1141
                            == -1) {
1142
1142
                                goto done;
1143
1143
                        }