2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Support for asynchronous ddns per ticket 19216 - convert to using isclib and

dnslib.
This commit is contained in:
Shawn Routhier
2009-10-28 04:12:30 +00:00
parent 571c38b093
commit 98bf16077d
95 changed files with 4938 additions and 4043 deletions

View File

@@ -843,14 +843,14 @@ option_reference(struct option **dest, struct option *src,
const char * file, int line)
{
if (!dest || !src)
return ISC_R_INVALIDARG;
return DHCP_R_INVALIDARG;
if (*dest) {
#if defined(POINTER_DEBUG)
log_fatal("%s(%d): reference store into non-null pointer!",
file, line);
#else
return ISC_R_INVALIDARG;
return DHCP_R_INVALIDARG;
#endif
}
@@ -864,13 +864,13 @@ int
option_dereference(struct option **dest, const char *file, int line)
{
if (!dest)
return ISC_R_INVALIDARG;
return DHCP_R_INVALIDARG;
if (!*dest) {
#if defined (POINTER_DEBUG)
log_fatal("%s(%d): dereference of null pointer!", file, line);
#else
return ISC_R_INVALIDARG;
return DHCP_R_INVALIDARG;
#endif
}
@@ -878,7 +878,7 @@ option_dereference(struct option **dest, const char *file, int line)
#if defined (POINTER_DEBUG)
log_fatal("%s(%d): dereference of <= 0 refcnt!", file, line);
#else
return ISC_R_INVALIDARG;
return DHCP_R_INVALIDARG;
#endif
}