aboutsummaryrefslogtreecommitdiff
path: root/contrib/isc-dhcp/minires/ns_samedomain.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-01-16 07:04:57 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-01-16 07:04:57 +0000
commit5ad7270f30563f9e223343950b9d85f78b3be537 (patch)
treed97161f30972714717408dbf20ff787d5e076488 /contrib/isc-dhcp/minires/ns_samedomain.c
parent8a71375ab66e9385345261310d853884ee6c34ca (diff)
downloadsrc-5ad7270f30563f9e223343950b9d85f78b3be537.tar.gz
src-5ad7270f30563f9e223343950b9d85f78b3be537.zip
Import isc-dhcpd-3.0.1rc11.
This fixes a security vulnerability in the bundled resolver library. Requested by: scottl(re)
Notes
Notes: svn path=/vendor/isc-dhcp/dist/; revision=109357
Diffstat (limited to 'contrib/isc-dhcp/minires/ns_samedomain.c')
-rw-r--r--contrib/isc-dhcp/minires/ns_samedomain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/isc-dhcp/minires/ns_samedomain.c b/contrib/isc-dhcp/minires/ns_samedomain.c
index ac17a52378e8..68770580eea2 100644
--- a/contrib/isc-dhcp/minires/ns_samedomain.c
+++ b/contrib/isc-dhcp/minires/ns_samedomain.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995,1999 by Internet Software Consortium.
+ * Copyright (c) 1995,1999-2003 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +16,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$Id: ns_samedomain.c,v 1.3 2001/01/16 22:33:09 mellon Exp $";
+static const char rcsid[] = "$Id: ns_samedomain.c,v 1.3.2.3 2003/01/14 23:15:06 dhankins Exp $";
#endif
#include <sys/types.h>
@@ -168,7 +168,7 @@ ns_makecanon(const char *src, char *dst, size_t dstsize) {
size_t n = strlen(src);
if (n + sizeof "." > dstsize) {
- ISC_R_NOSPACE;
+ return ISC_R_NOSPACE;
}
strcpy(dst, src);
while (n > 0 && dst[n - 1] == '.') /* Ends in "." */