Changeset 723:b6202dea0f4d in freeDiameter for extensions/app_redirect/ard_rules.c
- Timestamp:
- Feb 22, 2011, 1:26:13 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_redirect/ard_rules.c
r722 r723 103 103 pmatch[0].rm_so = 0; 104 104 pmatch[0].rm_eo = l; 105 err = regexec(&c->preg, s, 0, pmatch, REG_STARTEND);105 err = regexec(&c->preg, (char *)s, 0, pmatch, REG_STARTEND); 106 106 #else /* HAVE_REG_STARTEND */ 107 107 if (!is0term) { 108 108 /* We have to create a copy of the string in this case */ 109 109 char *mystrcpy; 110 CHECK_MALLOC( mystrcpy = os0dup(s, l) );110 CHECK_MALLOC( mystrcpy = (char *)os0dup(s, l) ); 111 111 err = regexec(&c->preg, mystrcpy, 0, NULL, 0); 112 112 free(mystrcpy); 113 113 } else { 114 err = regexec(&c->preg, s, 0, NULL, 0);114 err = regexec(&c->preg, (char *)s, 0, NULL, 0); 115 115 } 116 116 #endif /* HAVE_REG_STARTEND */ … … 184 184 185 185 case FROM_ID: 186 CHECK_FCT( str_match(c, phdr->info.pi_diamid, phdr->info.pi_diamidlen, 1, &is_match) );186 CHECK_FCT( str_match(c, (uint8_t *)phdr->info.pi_diamid, phdr->info.pi_diamidlen, 1, &is_match) ); 187 187 break; 188 188 189 189 case FROM_REALM: 190 190 if (phdr->info.runtime.pir_realm) { 191 CHECK_FCT( str_match(c, phdr->info.runtime.pir_realm, phdr->info.runtime.pir_realmlen, 1, &is_match) );191 CHECK_FCT( str_match(c, (uint8_t *)phdr->info.runtime.pir_realm, phdr->info.runtime.pir_realmlen, 1, &is_match) ); 192 192 } else { 193 193 /* since we don't have the realm it was received from, assume it does not match */
Note: See TracChangeset
for help on using the changeset viewer.