projects
/
project
/
rpcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
properly handle return codes
[project/rpcd.git]
/
plugin.c
diff --git
a/plugin.c
b/plugin.c
index b75241aae1f82ce0a84b5d40c1c74b2e8c0577ed..70d2c563ba3f12329b138481be12f825efd2f2ea 100644
(file)
--- a/
plugin.c
+++ b/
plugin.c
@@
-324,7
+324,9
@@
rpc_plugin_parse_exec(const char *name, int fd)
if (!obj_type)
return NULL;
- asprintf((char **)&obj_type->name, "luci-rpc-plugin-%s", name);
+ if (asprintf((char **)&obj_type->name, "luci-rpc-plugin-%s", name) < 0)
+ return NULL;
+
obj_type->methods = methods;
obj_type->n_methods = n_method;