Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
0a759381
Commit
0a759381
authored
Mar 06, 2000
by
Ted Lemon
Browse files
Return -1 when read_socket method is called on non-interface object.
parent
cfc62a06
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/discover.c
View file @
0a759381
...
...
@@ -22,7 +22,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: discover.c,v 1.2
3
2000/0
2/15 20:40:30
mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: discover.c,v 1.2
4
2000/0
3/06 22:52:16
mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include
"dhcpd.h"
...
...
@@ -586,7 +586,7 @@ int if_readsocket (h)
struct
interface_info
*
ip
;
if
(
h
->
type
!=
dhcp_type_interface
)
return
ISC_R_INVALIDARG
;
return
-
1
;
ip
=
(
struct
interface_info
*
)
h
;
return
ip
->
rfdesc
;
}
...
...
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