Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eduroam
radsecproxy
Commits
684ade53
Commit
684ade53
authored
May 25, 2010
by
Linus Nordberg
Browse files
* radsecproxy.c (extractattr): Bug! When s is changed, update len. This might actually work now!
parent
2e9d382f
Changes
1
Hide whitespace changes
Inline
Side-by-side
radsecproxy.c
View file @
684ade53
...
...
@@ -2335,19 +2335,20 @@ struct tlv *extractattr(char *nameval) {
struct
tlv
*
a
;
s
=
strchr
(
nameval
,
':'
);
name
=
atoi
(
nameval
);
if
(
!
s
)
return
NULL
;
len
=
strlen
(
s
+
1
);
if
(
len
>
253
)
return
NULL
;
name
=
atoi
(
nameval
);
/* Two ':' means that we have vendor:name:val. */
s2
=
strchr
(
s
+
1
,
':'
);
if
(
s2
)
{
/* Two ':' means we have vendor:name:val. */
if
(
s2
)
{
vendor
=
name
;
name
=
atoi
(
s
+
1
);
s
=
s2
;
}
len
=
strlen
(
s
+
1
);
if
(
len
>
253
)
return
NULL
;
if
(
name
<
1
||
name
>
255
)
return
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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