diff options
Diffstat (limited to 'radius')
-rw-r--r-- | radius/.gitignore | 1 | ||||
-rw-r--r-- | radius/client.h | 2 | ||||
-rwxr-xr-x | radius/convert.pl | 2 | ||||
-rw-r--r-- | radius/valuepair.c | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/radius/.gitignore b/radius/.gitignore new file mode 100644 index 0000000..1af03df --- /dev/null +++ b/radius/.gitignore @@ -0,0 +1 @@ +dictionaries.c diff --git a/radius/client.h b/radius/client.h index ab4718a..2f81625 100644 --- a/radius/client.h +++ b/radius/client.h @@ -654,7 +654,7 @@ extern const int nr_dict_num_names; * \attention This variable should only be accessed by internal RADIUS library * functions. */ -extern const DICT_ATTR const *nr_dict_attr_names[]; +extern const DICT_ATTR * const nr_dict_attr_names[]; /** Static array containing names the RADIUS_PACKET::code field. \ingroup dict * diff --git a/radius/convert.pl b/radius/convert.pl index 7ca424e..ba9ed4e 100755 --- a/radius/convert.pl +++ b/radius/convert.pl @@ -139,7 +139,7 @@ print DICT "const int nr_dict_num_attrs = ", $offset - 1, ";\n\n"; print DICT "const int nr_dict_num_names = ", $num_names - 1, ";\n\n"; my $offset = 0; -print DICT "const DICT_ATTR *nr_dict_attr_names[] = {\n"; +print DICT "const DICT_ATTR * const nr_dict_attr_names[] = {\n"; foreach $attr_val (sort {lc($attributes{$a}{'name'}) cmp lc($attributes{$b}{'name'})} keys %attributes) { next if (defined $attributes{$attr_val}{'raw'}); diff --git a/radius/valuepair.c b/radius/valuepair.c index 6277f7d..4ba33f6 100644 --- a/radius/valuepair.c +++ b/radius/valuepair.c @@ -38,7 +38,7 @@ void nr_vp_free(VALUE_PAIR **head) for (vp = *head; vp != NULL; vp = next) { next = vp->next; if (vp->da->flags.encrypt) { - memset(vp, 0, sizeof(vp)); + memset(vp, 0, sizeof(*vp)); } free(vp); } |