Skip to content
Snippets Groups Projects
Commit 96896a08 authored by Steven Murray's avatar Steven Murray
Browse files

Added handling of notification message parse errors

parent 834c7f7e
Branches
Tags
No related merge requests found
......@@ -79,8 +79,6 @@ namespace cta { namespace xrootPlugins {
//------------------------------------------------------------------------------
int XrdCtaFilesystem::FSctl(const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client)
{
(void)cmd; (void)args; (void)eInfo; (void)client;
if(SFS_FSCTL_PLUGIO != cmd) {
eInfo.setErrInfo(ENOTSUP, "Not supported: cmd != SFS_FSCTL_PLUGIO");
return SFS_ERROR;
......@@ -102,7 +100,10 @@ int XrdCtaFilesystem::FSctl(const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eIn
const std::string query(args.Arg1, args.Arg1Len);
eos::wfe::notification notification;
notification.ParseFromString(query);
if(!notification.ParseFromString(query)) {
eInfo.setErrInfo(EINVAL, "Failed to parse notification message");
return SFS_ERROR;
}
{
std::list<cta::log::Param> params;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment