From 788248b3798efce95046c8e28e51f2ac3a03b932 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 9 Sep 2014 04:49:37 +0200 Subject: whoops, read wrong header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-clipboard.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mds-clipboard.c b/src/mds-clipboard.c index 55798a6..1e47532 100644 --- a/src/mds-clipboard.c +++ b/src/mds-clipboard.c @@ -496,13 +496,13 @@ int handle_message(void) return 0; } if (strequals(recv_client_id, "0:0")) - if (strequals(recv_message_id, "read") || strequals(recv_message_id, "get-size")) + if (strequals(recv_action, "read") || strequals(recv_action, "get-size")) { eprint("received information request from an anonymous client, ignoring."); return 0; } - if (strequals(recv_message_id, "add")) + if (strequals(recv_action, "add")) { if (recv_length == NULL) { @@ -517,11 +517,11 @@ int handle_message(void) } return clipboard_add(level, recv_time_to_live, recv_client_id); } - else if (strequals(recv_message_id, "read")) + else if (strequals(recv_action, "read")) return clipboard_read(level, atoz(recv_index), recv_client_id, recv_message_id); - else if (strequals(recv_message_id, "clear")) + else if (strequals(recv_action, "clear")) return clipboard_clear(level); - else if (strequals(recv_message_id, "set-size")) + else if (strequals(recv_action, "set-size")) { if (recv_size == NULL) { @@ -530,7 +530,7 @@ int handle_message(void) } return clipboard_set_size(level, atoz(recv_size)); } - else if (strequals(recv_message_id, "get-size")) + else if (strequals(recv_action, "get-size")) return clipboard_get_size(level, recv_client_id, recv_message_id); eprint("received message with invalid action, ignoring."); -- cgit v1.2.3-70-g09d2