Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
radsecproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eduroam
radsecproxy
Commits
43446949
Commit
43446949
authored
Aug 28, 2013
by
Linus Nordberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have radmsg_copy_attrs() return error in all error cases.
Also when copying of the first attribute fails.
parent
26c8061a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
radmsg.c
radmsg.c
+2
-4
No files found.
radmsg.c
View file @
43446949
...
...
@@ -106,9 +106,7 @@ struct tlv *radmsg_gettype(struct radmsg *msg, uint8_t type) {
* If all attributes were copied successfully, the number of
* attributes copied is returned.
*
* If copying failed, a negative number is returned. The number
* returned is 0 minus the number of attributes successfully copied
* before the failure. */
* If copying failed, a negative number is returned. */
int
radmsg_copy_attrs
(
struct
radmsg
*
dst
,
const
struct
radmsg
*
src
,
uint8_t
type
)
...
...
@@ -119,7 +117,7 @@ int radmsg_copy_attrs(struct radmsg *dst,
for
(
node
=
list_first
(
list
);
node
;
node
=
list_next
(
node
))
{
if
(
radmsg_add
(
dst
,
copytlv
((
struct
tlv
*
)
node
->
data
))
!=
1
)
{
n
=
-
n
;
n
=
-
1
;
break
;
}
n
++
;
...
...
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