summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging/messaging.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-17 09:09:25 +0000
committerVolker Lendecke <vl@samba.org>2014-07-24 21:41:10 +0200
commitf7fb9e24b3d7e6506558c1fce900d954bcde608f (patch)
tree71acf39672fed63e05e62ecd91b66a16c50acf6c /source4/lib/messaging/messaging.c
parentbe2b89174087b570b61f1dbc321c46debc5f4f50 (diff)
downloadsamba-f7fb9e24b3d7e6506558c1fce900d954bcde608f.tar.gz
samba-f7fb9e24b3d7e6506558c1fce900d954bcde608f.tar.xz
samba-f7fb9e24b3d7e6506558c1fce900d954bcde608f.zip
messaging4: Simplify ping_message with server_id_str_buf()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/lib/messaging/messaging.c')
-rw-r--r--source4/lib/messaging/messaging.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index 4242b1cc85..ffa668a445 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -113,11 +113,10 @@ static void irpc_handler(struct imessaging_context *, void *,
static void ping_message(struct imessaging_context *msg, void *private_data,
uint32_t msg_type, struct server_id src, DATA_BLOB *data)
{
- char *task_id = server_id_str(NULL, &src);
+ struct server_id_buf idbuf;
DEBUG(1,("INFO: Received PING message from server %s [%.*s]\n",
- task_id, (int)data->length,
+ server_id_str_buf(src, &idbuf), (int)data->length,
data->data?(const char *)data->data:""));
- talloc_free(task_id);
imessaging_send(msg, src, MSG_PONG, data);
}