projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use json_is_true() in place of json_boolean_value() for compatibility
[trust_router.git]
/
mon
/
mon_req_decode.c
diff --git
a/mon/mon_req_decode.c
b/mon/mon_req_decode.c
index
21bb64b
..
2d05620
100644
(file)
--- a/
mon/mon_req_decode.c
+++ b/
mon/mon_req_decode.c
@@
-38,7
+38,7
@@
#include <mon_internal.h>
#include <mon_internal.h>
-/
/ Monitoring request decoders
+/
* Monitoring request decoders */
/**
* Decode a single option
/**
* 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;
}
&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;
}
}
return MON_SUCCESS;
}