mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
cast a suitably range checked long to isc_uint8_t when assigned to isc_uint8_t
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93";
|
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 */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -140,7 +140,7 @@ isc_net_aton(const char *cp, struct in_addr *addr)
|
|||||||
*/
|
*/
|
||||||
if (pp >= parts + 3 || val > 0xff)
|
if (pp >= parts + 3 || val > 0xff)
|
||||||
return (0);
|
return (0);
|
||||||
*pp++ = val;
|
*pp++ = (isc_uint8_t)val;
|
||||||
c = *++cp;
|
c = *++cp;
|
||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user