#ifndef lint
static char copyright[] =
-"$Id: alloc.c,v 1.28 1999/04/05 19:02:17 mellon Exp $ Copyright (c) 1995, 1996, 1998 The Internet Software Consortium. All rights reserved.\n";
+"$Id: alloc.c,v 1.29 1999/05/07 17:34:30 mellon Exp $ Copyright (c) 1995, 1996, 1998 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
{
if (!ptr) {
log_error ("Null pointer in expression_reference: %s", name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
if (*ptr) {
log_error ("Non-null pointer in expression_reference (%s)",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
*ptr = src;
src -> refcnt++;
{
if (!ptr) {
log_error ("Null pointer in option_cache_reference: %s", name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
if (*ptr) {
log_error ("Non-null pointer in option_cache_reference (%s)",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
*ptr = src;
src -> refcnt++;
if (!ptr) {
log_error ("Null pointer passed to buffer_reference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
if (*ptr) {
log_error ("Non-null pointer in buffer_reference (%s)", name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
*ptr = bp;
bp -> refcnt++;
if (!ptr || !*ptr) {
log_error ("Null pointer passed to buffer_dereference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
(*ptr) -> refcnt--;
if (!ptr) {
log_error ("Null pointer in dns_host_entry_reference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
if (*ptr) {
log_error ("Non-null pointer in dns_host_entry_reference (%s)",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
*ptr = bp;
bp -> refcnt++;
if (!ptr || !*ptr) {
log_error ("Null pointer in dns_host_entry_dereference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
(*ptr) -> refcnt--;
if (!ptr) {
log_error ("Null pointer passed to option_state_allocate: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
if (*ptr) {
log_error ("Non-null pointer in option_state_allocate (%s)",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
size = sizeof **ptr + (universe_count - 1) * sizeof (VOIDPTR);
if (!ptr) {
log_error ("Null pointer in option_state_reference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
if (*ptr) {
log_error ("Non-null pointer in option_state_reference (%s)",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
*ptr = bp;
bp -> refcnt++;
if (!ptr || !*ptr) {
log_error ("Null pointer in option_state_dereference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
options = *ptr;
#ifndef lint
static char copyright[] =
-"$Id: memory.c,v 1.48 1999/03/16 05:50:35 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: memory.c,v 1.49 1999/05/07 17:35:12 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
find_lease_by_uid (lease -> uid, lease -> uid_len);
struct lease *scan;
-#ifdef DEBUG
- if (lease -> n_uid)
- abort ();
-#endif
-
/* If it's not in the hash, just add it. */
if (!head)
add_hash (lease_uid_hash, lease -> uid,
else {
/* Otherwise, attach it to the end of the list. */
for (scan = head; scan -> n_uid; scan = scan -> n_uid)
-#ifdef DEBUG
- if (scan == lease)
- abort ()
-#endif
- ;
+ ;
scan -> n_uid = lease;
}
}
#ifndef lint
static char copyright[] =
-"$Id: options.c,v 1.41 1999/04/23 22:10:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: options.c,v 1.42 1999/05/07 17:36:36 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#define DHCP_OPTION_DATA
if (!ptr || !*ptr) {
log_error ("Null pointer in option_cache_dereference: %s",
name);
+#if defined (POINTER_DEBUG)
abort ();
+#else
+ return 0;
+#endif
}
(*ptr) -> refcnt--;