Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
4467bedb
Commit
4467bedb
authored
2 years ago
by
Peter Jansweijer
Browse files
Options
Downloads
Patches
Plain Diff
sfp add has wrong parameter amount check
parent
ac9751d7
1 merge request
!4
Peter clb wrpc v5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shell/cmd_sfp.c
+1
-1
1 addition, 1 deletion
shell/cmd_sfp.c
with
1 addition
and
1 deletion
shell/cmd_sfp.c
+
1
−
1
View file @
4467bedb
...
...
@@ -89,7 +89,7 @@ static int cmd_sfp(const char *args[])
return
-
EIO
;
}
return
0
;
}
else
if
(
args
[
5
]
&&
!
strcasecmp
(
args
[
0
],
"add"
))
{
}
else
if
(
args
[
4
]
&&
!
strcasecmp
(
args
[
0
],
"add"
))
{
temp
=
strnlen
(
args
[
1
],
SFP_PN_LEN
);
for
(
i
=
0
;
i
<
temp
;
++
i
)
sfp
.
pn
[
i
]
=
args
[
1
][
i
];
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment