Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eduroam
radsecproxy
Commits
2a75a2bb
Commit
2a75a2bb
authored
Jul 30, 2017
by
Linus Nordberg
Browse files
maketlv() makes a copy of v, so free it.
coverity: 1449503
parent
7a47ecf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
radsecproxy.c
View file @
2a75a2bb
...
@@ -1127,9 +1127,8 @@ makevendortlv(uint32_t vendor, struct tlv *attr)
...
@@ -1127,9 +1127,8 @@ makevendortlv(uint32_t vendor, struct tlv *attr)
tlv2buf
(
v
+
4
,
attr
);
tlv2buf
(
v
+
4
,
attr
);
v
[
5
]
+=
2
;
/* Vendor length increased for type and length fields. */
v
[
5
]
+=
2
;
/* Vendor length increased for type and length fields. */
newtlv
=
maketlv
(
RAD_Attr_Vendor_Specific
,
l
,
v
);
newtlv
=
maketlv
(
RAD_Attr_Vendor_Specific
,
l
,
v
);
if
(
newtlv
==
NULL
)
free
(
v
);
free
(
v
);
if
(
newtlv
)
else
freetlv
(
attr
);
freetlv
(
attr
);
}
}
return
newtlv
;
return
newtlv
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment