summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/dname.h
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-07-17 17:36:02 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-07-17 17:36:02 +0000
commit0648fda297cd0b072f32820e0229845c7a30e092 (patch)
tree1a7b872b8edab265582e9c62f2dfd1c5ceb0d501 /usr.sbin/nsd/dname.h
parentcf3a99ef19172cd8a3dc0b09ff92a6197f532b13 (diff)
update to NSD 4.1.3, ok florian@, also tested by brad
Diffstat (limited to 'usr.sbin/nsd/dname.h')
-rw-r--r--usr.sbin/nsd/dname.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/dname.h b/usr.sbin/nsd/dname.h
index a9aa15ad177..060afff5b15 100644
--- a/usr.sbin/nsd/dname.h
+++ b/usr.sbin/nsd/dname.h
@@ -217,7 +217,7 @@ static inline size_t
dname_total_size(const dname_type *dname)
{
return (sizeof(dname_type)
- + ((dname->label_count + dname->name_size)
+ + ((((size_t)dname->label_count) + ((size_t)dname->name_size))
* sizeof(uint8_t)));
}