projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert os_realloc() for an array to use os_realloc_array()
[mech_eap.git]
/
src
/
radius
/
radius.c
diff --git
a/src/radius/radius.c
b/src/radius/radius.c
index
858367c
..
d5edfd8
100644
(file)
--- a/
src/radius/radius.c
+++ b/
src/radius/radius.c
@@
-562,8
+562,8
@@
static int radius_msg_add_attr_to_array(struct radius_msg *msg,
size_t *nattr_pos;
int nlen = msg->attr_size * 2;
- nattr_pos = os_realloc
(msg->attr_pos
,
-
nlen *
sizeof(*msg->attr_pos));
+ nattr_pos = os_realloc
_array(msg->attr_pos, nlen
,
+
sizeof(*msg->attr_pos));
if (nattr_pos == NULL)
return -1;