X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mon%2Fmon_req_decode.c;h=2d05620519bd7fe283c74534ee9e06a804a4b7e2;hb=298aea2c08823da7e05747a072dffbcd485491c8;hp=21bb64bd0016a99dc211911ff6a4e35315bb6b18;hpb=c3962902ebd3d3f69725c9976f81b0b25c18f45c;p=trust_router.git diff --git a/mon/mon_req_decode.c b/mon/mon_req_decode.c index 21bb64b..2d05620 100644 --- a/mon/mon_req_decode.c +++ b/mon/mon_req_decode.c @@ -38,7 +38,7 @@ #include -// Monitoring request decoders +/* Monitoring request decoders */ /** * Decode a single option @@ -98,7 +98,9 @@ static MON_RC mon_options_decode(json_t *opts_json, MON_REQ *req) &opt) != MON_SUCCESS) { return MON_NOPARSE; } - mon_req_add_option(req, opt.type); + if (MON_SUCCESS != mon_req_add_option(req, opt.type)){ + return MON_NOPARSE; + } } return MON_SUCCESS; }