projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39e8284
)
error check & memset to zero
author
aland
<aland>
Mon, 7 Jul 2003 19:04:05 +0000
(19:04 +0000)
committer
aland
<aland>
Mon, 7 Jul 2003 19:04:05 +0000
(19:04 +0000)
src/modules/rlm_attr_filter/rlm_attr_filter.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_attr_filter/rlm_attr_filter.c
b/src/modules/rlm_attr_filter/rlm_attr_filter.c
index
015d731
..
5e96365
100644
(file)
--- a/
src/modules/rlm_attr_filter/rlm_attr_filter.c
+++ b/
src/modules/rlm_attr_filter/rlm_attr_filter.c
@@
-152,6
+152,10
@@
static int attr_filter_instantiate(CONF_SECTION *conf, void **instance)
int rcode;
inst = rad_malloc(sizeof *inst);
+ if (!inst) {
+ return -1;
+ }
+ memset(inst, 0, sizeof(*inst));
if (cf_section_parse(conf, inst, module_config) < 0) {
free(inst);