summaryrefslogtreecommitdiff
path: root/minires
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2008-11-03 21:39:31 +0000
committerDavid Hankins <dhankins@isc.org>2008-11-03 21:39:31 +0000
commitf1672d89072ea5fef5589e085191f60728d0379b (patch)
tree0d06ea2de73d7a2e879564bc72df60c1db492847 /minires
parent7d714d6bba310e6a8cbcebc536ab68266eb1faa2 (diff)
downloadisc-dhcp-f1672d89072ea5fef5589e085191f60728d0379b.tar.gz
- The !inet_pton() call in res_mkupdrec was adjusted to '<= 0' as
inet_pton returns either 1, 0, or -1. [ISC-Bugs #18511]
Diffstat (limited to 'minires')
-rw-r--r--minires/res_mkupdate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minires/res_mkupdate.c b/minires/res_mkupdate.c
index 368bcb05..16d9829c 100644
--- a/minires/res_mkupdate.c
+++ b/minires/res_mkupdate.c
@@ -27,7 +27,7 @@
*/
#if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_mkupdate.c,v 1.12 2008/02/28 21:21:56 dhankins Exp $";
+static const char rcsid[] = "$Id: res_mkupdate.c,v 1.13 2008/11/03 21:39:31 dhankins Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -239,7 +239,7 @@ res_nmkupdate(res_state statp,
case T_AAAA:
if (!getword_str(buf2, sizeof buf2, &startp, endp))
return (-1);
- if (!inet_pton(AF_INET6, buf2, &in6a))
+ if (inet_pton(AF_INET6, buf2, &in6a) <= 0)
return (-1);
n = sizeof(struct in6_addr);
memcpy(cp, &in6a, n);