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

Fixed a bug that caused OMAPI clients to hang when opening leases. [rt16495]

This commit is contained in:
Evan Hunt
2007-05-07 17:19:17 +00:00
parent 9163e15d4e
commit 74dc3e0b27
3 changed files with 16 additions and 6 deletions

View File

@@ -41,7 +41,7 @@
#ifndef lint
static char copyright[] =
"$Id: omapi.c,v 1.59 2006/10/27 22:54:13 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
"$Id: omapi.c,v 1.60 2007/05/07 17:19:17 each Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -701,10 +701,13 @@ isc_result_t dhcp_lease_stuff_values (omapi_object_t *c,
return status;
status = omapi_connection_put_name (c, "flags");
if (status != ISC_R_SUCCESS)
return status;
status = omapi_connection_put_uint32(c, sizeof(flagbuf));
if (status != ISC_R_SUCCESS)
return status;
flagbuf = lease->flags & EPHEMERAL_FLAGS;
status = omapi_connection_copyin(c, &flagbuf, 1);
status = omapi_connection_copyin(c, &flagbuf, sizeof(flagbuf));
if (status != ISC_R_SUCCESS)
return status;