aboutsummaryrefslogtreecommitdiff
path: root/src/ccapi/server
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2007-09-18 19:52:13 +0000
committerAlexandra Ellwood <lxs@mit.edu>2007-09-18 19:52:13 +0000
commit02703367a02c3dd85f2761d617f532668ceca906 (patch)
treeb78ee57e3ed27e92ab085a51956b1dbcb8fa5632 /src/ccapi/server
parent426ef0b9515cc14e34ec0f6ef2ce13f7d9e9ec4b (diff)
downloadkrb5-02703367a02c3dd85f2761d617f532668ceca906.zip
krb5-02703367a02c3dd85f2761d617f532668ceca906.tar.gz
krb5-02703367a02c3dd85f2761d617f532668ceca906.tar.bz2
Added additional debugging error checking
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19951 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/server')
-rw-r--r--src/ccapi/server/mac/ccs_os_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ccapi/server/mac/ccs_os_server.c b/src/ccapi/server/mac/ccs_os_server.c
index eefac4c..c99547f 100644
--- a/src/ccapi/server/mac/ccs_os_server.c
+++ b/src/ccapi/server/mac/ccs_os_server.c
@@ -151,7 +151,7 @@ cc_int32 ccs_os_server_initialize (int argc, const char *argv[])
openlog (argv[0], LOG_CONS | LOG_PID, LOG_AUTH);
syslog (LOG_INFO, "Starting up.");
-
+
syslog (LOG_NOTICE, "Exiting: %s (%d)", kipc_error_string (err), err);
return cci_check_error (err);
@@ -198,7 +198,7 @@ cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe,
if (!err) {
/* depending on how big the message is, use the fast inline buffer or
- * the slow dynamically allocated buffer */
+ * the slow dynamically allocated buffer */
mach_msg_type_number_t reply_length = cci_stream_size (in_reply_stream);
if (reply_length > kCCAPIMaxILMsgSize) {
@@ -208,6 +208,7 @@ cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe,
err = vm_read (mach_task_self (),
(vm_address_t) cci_stream_data (in_reply_stream), reply_length,
(vm_address_t *) &ool_reply, &ool_reply_length);
+ cci_check_error (err);
} else {
//cci_debug_printf ("%s choosing in line buffer (size is %d)",
@@ -222,6 +223,7 @@ cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe,
err = ccs_mipc_reply (in_reply_pipe,
inl_reply, inl_reply_length,
ool_reply, ool_reply_length);
+ cci_check_error (err);
}
if (!err) {