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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user