summaryrefslogtreecommitdiff
path: root/source4/lib/messaging
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-09 09:05:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-09 10:15:13 +1100
commit651ddb720a2dd80c9abd65563af54a512525b622 (patch)
treead05e15502cb223e24c1dd345fcd5e7a017c61e7 /source4/lib/messaging
parent6a36799d30c1bfb685ccfe77257433710f23215c (diff)
downloadsamba-651ddb720a2dd80c9abd65563af54a512525b622.tar.gz
samba-651ddb720a2dd80c9abd65563af54a512525b622.tar.bz2
samba-651ddb720a2dd80c9abd65563af54a512525b622.zip
s4-messaging: remove only usage of debug_ctx()
Diffstat (limited to 'source4/lib/messaging')
-rw-r--r--source4/lib/messaging/messaging.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index d4dfff7c8c..c12945b622 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -268,11 +268,13 @@ static void messaging_send_handler(struct messaging_context *msg)
}
rec->retries = 0;
if (!NT_STATUS_IS_OK(status)) {
+ TALLOC_CTX *tmp_ctx = talloc_new(msg);
DEBUG(1,("messaging: Lost message from %s to %s of type %u - %s\n",
- cluster_id_string(debug_ctx(), rec->header->from),
- cluster_id_string(debug_ctx(), rec->header->to),
+ cluster_id_string(tmp_ctx, rec->header->from),
+ cluster_id_string(tmp_ctx, rec->header->to),
rec->header->msg_type,
nt_errstr(status)));
+ talloc_free(tmp_ctx);
}
DLIST_REMOVE(msg->pending, rec);
talloc_free(rec);