Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
12da0010
Commit
12da0010
authored
Jul 31, 2000
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a segfault condition in ifconfig when setting hw address for AF loop,
as reorted by ADAM Sulmicki.
parent
430d9748
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ifconfig.c
ifconfig.c
+7
-1
No files found.
ifconfig.c
View file @
12da0010
...
...
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
* Version: $Id: ifconfig.c,v 1.
39 2000/06/11 15:44:21 pb
Exp $
* Version: $Id: ifconfig.c,v 1.
40 2000/07/31 01:13:33 ecki
Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
...
...
@@ -636,6 +636,12 @@ int main(int argc, char **argv)
usage
();
if
((
hw
=
get_hwtype
(
*
spp
))
==
NULL
)
usage
();
if
(
hw
->
input
==
NULL
)
{
fprintf
(
stderr
,
_
(
"hw address type `%s' has no handler to set address. failed.
\n
"
),
*
spp
);
spp
+=
2
;
goterr
=
1
;
continue
;
}
if
(
*++
spp
==
NULL
)
usage
();
safe_strncpy
(
host
,
*
spp
,
(
sizeof
host
));
...
...
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