Changeset 511:17435072de36 in freeDiameter
- Timestamp:
- Aug 20, 2010, 3:18:58 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_diameap/diameap.y
r425 r511 134 134 if ((fl == NULL) && (*cfile != '/')) { 135 135 char * tmp = cfile; 136 CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_ EXTENSIONS_PATH) + 2 ),136 CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_CONF_PATH) + 2 ), 137 137 { yyerror (&yylloc, config, "Not enough memory"); YYERROR; } ); 138 sprintf(cfile, DEFAULT_ EXTENSIONS_PATH "/%s", tmp);138 sprintf(cfile, DEFAULT_CONF_PATH "/%s", tmp); 139 139 free(tmp); 140 140 fl = fopen(cfile, "r"); -
extensions/app_radgw/rgwx_echodrop.y
r403 r511 69 69 70 70 rgwx_echodropin = fopen(conffile, "r"); 71 if ((rgwx_echodropin == NULL) && (*conffile != '/')) { /* We received a relative path, try adding DEFAULT_CONF_PATH prefix */ 72 char * fullpath; 73 CHECK_MALLOC( fullpath = malloc( strlen(conffile) + strlen(DEFAULT_CONF_PATH) + 2 ) ); 74 sprintf( fullpath, DEFAULT_CONF_PATH "/%s", conffile ); 75 rgwx_echodropin = fopen(fullpath, "r"); 76 free(fullpath); 77 } 71 78 if (rgwx_echodropin == NULL) { 72 79 ret = errno;
Note: See TracChangeset
for help on using the changeset viewer.