Actions
Bug #4961
closedndncert-client crashes if client.conf cannot be opened
Start date:
Due date:
% Done:
100%
Estimated time:
Description
If client.conf
doesn't exist in the right location or cannot be opened for whatever reason (e.g., wrong permissions), ndncert-client
will crash with an uncaught exception.
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> >'
what(): /usr/local/etc/ndncert/client.conf: cannot open file
Aborted (core dumped)
Updated by Davide Pesavento almost 5 years ago
And I get a similar crash if the config file is empty or malformed.
Updated by Davide Pesavento almost 5 years ago
This is with:
$ git rev-parse HEAD
781a560d7a18d020209c0394bb308e1650ef9a2d
Updated by Zhiyi Zhang almost 5 years ago
- Status changed from New to Code review
Updated by Davide Pesavento almost 5 years ago
- Status changed from Code review to Closed
- % Done changed from 0 to 100
Fixed in commit d8993b9b52f9b6d11522520b1888d841df756ea3
Actions