Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
1c4572c4
Commit
1c4572c4
authored
Sep 08, 2015
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/snmpd: fix crashes at startup in wrsPortStatusTable
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
5379741e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
wrsPortStatusTable.c
userspace/snmpd/wrsPortStatusTable.c
+6
-0
No files found.
userspace/snmpd/wrsPortStatusTable.c
View file @
1c4572c4
...
...
@@ -71,6 +71,12 @@ time_t wrsPortStatusTable_data_fill(unsigned int *n_rows)
port_state
=
hal_lookup_port
(
hal_ports
,
hal_nports_local
,
wrsPortStatusTable_array
[
i
].
port_name
);
if
(
!
port_state
)
{
/* It looks like we're in strange situation
* that HAL is up but hal_ports is not filled
*/
continue
;
}
/* No need to copy all ports structures, only what
* we're interested in.
* Keep value 0 for Not available
...
...
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