summaryrefslogtreecommitdiff
path: root/omapip
diff options
context:
space:
mode:
authorEvan Hunt <each@isc.org>2007-05-07 17:19:17 +0000
committerEvan Hunt <each@isc.org>2007-05-07 17:19:17 +0000
commit74dc3e0b2786c46956e7517398ae6f7c6dad52d7 (patch)
tree7ef87f60a89fc5c864335fe616f734bbdd64acf9 /omapip
parent9163e15d4ec100db27f458290ade14f1db258ae1 (diff)
downloadisc-dhcp-74dc3e0b2786c46956e7517398ae6f7c6dad52d7.tar.gz
Fixed a bug that caused OMAPI clients to hang when opening leases. [rt16495]
Diffstat (limited to 'omapip')
-rw-r--r--omapip/protocol.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/omapip/protocol.c b/omapip/protocol.c
index f5bbb0c7..281c1e4f 100644
--- a/omapip/protocol.c
+++ b/omapip/protocol.c
@@ -34,7 +34,7 @@
#ifndef lint
static char ocopyright[] =
-"$Id: protocol.c,v 1.30 2006/02/24 23:16:30 dhankins Exp $ Copyright 2004-2006 Internet Systems Consortium.";
+"$Id: protocol.c,v 1.31 2007/05/07 17:19:17 each Exp $ Copyright 2004-2006 Internet Systems Consortium.";
#endif
#include <omapip/omapip_p.h>
@@ -150,6 +150,10 @@ isc_result_t omapi_protocol_send_intro (omapi_object_t *h,
return ISC_R_SUCCESS;
}
+#ifdef DEBUG_PROTOCOL
+extern const char *omapi_message_op_name(int);
+#endif /* DEBUG_PROTOCOL */
+
isc_result_t omapi_protocol_send_message (omapi_object_t *po,
omapi_object_t *id,
omapi_object_t *mo,
@@ -176,9 +180,9 @@ isc_result_t omapi_protocol_send_message (omapi_object_t *po,
om = (omapi_message_object_t *)omo;
#ifdef DEBUG_PROTOCOL
- log_debug ("omapi_protocol_send_message()"
- "op=%ld handle=%#lx id=%#lx rid=%#lx",
- (long)m -> op,
+ log_debug ("omapi_protocol_send_message(): "
+ "op=%s handle=%#lx id=%#lx rid=%#lx",
+ omapi_message_op_name (m->op),
(long)(m -> object ? m -> object -> handle : m -> handle),
(long)p -> next_xid, (long)m -> rid);
#endif