Changeset 969:6808de455810 in freeDiameter for libfdcore/fdd.y
- Timestamp:
- Mar 13, 2013, 1:43:30 AM (11 years ago)
- Branch:
- default
- Children:
- 970:ec348f604399, 972:ce3cacbbccc9
- Parents:
- 966:8862d9dece66 (diff), 968:652713ce3596 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 2 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) */ -
libfdcore/fdd.y
r967 r969 63 63 { 64 64 if (ploc->first_line != ploc->last_line) { 65 TRACE_ DEBUG_ERROR("%s:%d.%d-%d.%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);65 TRACE_ERROR("%s:%d.%d-%d.%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s); 66 66 } else if (ploc->first_column != ploc->last_column) { 67 TRACE_ DEBUG_ERROR("%s:%d.%d-%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, ploc->last_column, s);67 TRACE_ERROR("%s:%d.%d-%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, ploc->last_column, s); 68 68 } else { 69 TRACE_ DEBUG_ERROR("%s:%d.%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, s);69 TRACE_ERROR("%s:%d.%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, s); 70 70 } 71 71 } … … 504 504 if (fd == NULL) { 505 505 int ret = errno; 506 TRACE_ DEBUG_ERROR("Unable to open certificate file %s for reading: %s\n", $3, strerror(ret));506 TRACE_ERROR("Unable to open certificate file %s for reading: %s\n", $3, strerror(ret)); 507 507 yyerror (&yylloc, conf, "Error on file name"); 508 508 YYERROR; … … 512 512 if (fd == NULL) { 513 513 int ret = errno; 514 TRACE_ DEBUG_ERROR("Unable to open private key file %s for reading: %s\n", $5, strerror(ret));514 TRACE_ERROR("Unable to open private key file %s for reading: %s\n", $5, strerror(ret)); 515 515 yyerror (&yylloc, conf, "Error on file name"); 516 516 YYERROR; … … 535 535 if (fd == NULL) { 536 536 int ret = errno; 537 TRACE_ DEBUG_ERROR("Unable to open CA file %s for reading: %s\n", $3, strerror(ret));537 TRACE_ERROR("Unable to open CA file %s for reading: %s\n", $3, strerror(ret)); 538 538 yyerror (&yylloc, conf, "Error on file name"); 539 539 YYERROR; … … 575 575 if (fd == NULL) { 576 576 int ret = errno; 577 TRACE_ DEBUG_ERROR("Unable to open CRL file %s for reading: %s\n", $3, strerror(ret));577 TRACE_ERROR("Unable to open CRL file %s for reading: %s\n", $3, strerror(ret)); 578 578 yyerror (&yylloc, conf, "Error on file name"); 579 579 YYERROR; … … 618 618 &err_pos), 619 619 { yyerror (&yylloc, conf, "Error setting Priority parameter."); 620 TRACE_ DEBUG_ERROR("Error at position : %s\n", err_pos);620 TRACE_ERROR("Error at position : %s\n", err_pos); 621 621 YYERROR; } ); 622 622 } … … 635 635 if (fd == NULL) { 636 636 int ret = errno; 637 TRACE_ DEBUG_ERROR("Unable to open DH file %s for reading: %s\n", $3, strerror(ret));637 TRACE_ERROR("Unable to open DH file %s for reading: %s\n", $3, strerror(ret)); 638 638 yyerror (&yylloc, conf, "Error on file name"); 639 639 YYERROR;
Note: See TracChangeset
for help on using the changeset viewer.