Changes in libfdcore/fdd.y [965:9b37f34c1b1f:969:6808de455810] in freeDiameter
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/fdd.y
r965 r969 323 323 { yyerror (&yylloc, conf, "Not enough memory"); YYERROR; } ); 324 324 sprintf(fname, DEFAULT_EXTENSIONS_PATH "/%s", bkp); 325 free(bkp);326 325 fd = fopen(fname, "r"); 327 } 328 if (fd == NULL) { 329 int ret = errno; 330 TRACE_ERROR("WARNING: Unable to open extension file %s for reading: %s\nLD_LIBRARY_PATH will be used.\n", fname, strerror(ret)); 331 } else { 326 if (fd == NULL) { 327 free(fname); 328 fname = bkp; 329 } else { 330 free(bkp); 331 } 332 } 333 if (fd != NULL) { 332 334 fclose(fd); 333 } 335 } /* otherwise, LD_LIBRARY_PATH will be tested by dl_open. 336 This should not give any security issue, otherwise we can add an "else fail" here. */ 334 337 335 338 /* Try and open the configuration file (optional) */
Note: See TracChangeset
for help on using the changeset viewer.