Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
98c29e4b
Commit
98c29e4b
authored
Oct 11, 1999
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cast a suitably range checked long to isc_uint8_t when assigned to isc_uint8_t
parent
f4c0131a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/isc/inet_aton.c
lib/isc/inet_aton.c
+2
-2
No files found.
lib/isc/inet_aton.c
View file @
98c29e4b
...
...
@@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static
char
sccsid
[]
=
"@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"
;
static
char
rcsid
[]
=
"$Id: inet_aton.c,v 1.
6
1999/
07/16 00:43:45 halley
Exp $"
;
static
char
rcsid
[]
=
"$Id: inet_aton.c,v 1.
7
1999/
10/11 20:16:33 tale
Exp $"
;
#endif
/* LIBC_SCCS and not lint */
#include <config.h>
...
...
@@ -140,7 +140,7 @@ isc_net_aton(const char *cp, struct in_addr *addr)
*/
if
(
pp
>=
parts
+
3
||
val
>
0xff
)
return
(
0
);
*
pp
++
=
val
;
*
pp
++
=
(
isc_uint8_t
)
val
;
c
=
*++
cp
;
}
else
break
;
...
...
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