From d566d1038857f381b1e5d2d9355a70a9f7dca1be Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Mon, 2 Oct 2017 11:43:28 +0200 Subject: [PATCH] lib-auth-client: auth-master - Move is_valid_string() --- src/lib-auth-client/auth-master.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/lib-auth-client/auth-master.c b/src/lib-auth-client/auth-master.c index 780824f106..b5728feacc 100644 --- a/src/lib-auth-client/auth-master.c +++ b/src/lib-auth-client/auth-master.c @@ -355,19 +355,6 @@ static void auth_master_unset_io(struct auth_master_connection *conn) } } -static bool is_valid_string(const char *str) -{ - const char *p; - - /* make sure we're not sending any characters that have a special - meaning. */ - for (p = str; *p != '\0'; p++) { - if (*p == '\t' || *p == '\n' || *p == '\r') - return FALSE; - } - return TRUE; -} - static int auth_master_run_cmd_pre(struct auth_master_connection *conn, const char *cmd) { @@ -447,6 +434,19 @@ auth_master_next_request_id(struct auth_master_connection *conn) return conn->request_counter; } +static bool is_valid_string(const char *str) +{ + const char *p; + + /* make sure we're not sending any characters that have a special + meaning. */ + for (p = str; *p != '\0'; p++) { + if (*p == '\t' || *p == '\n' || *p == '\r') + return FALSE; + } + return TRUE; +} + static const char *const *args_hide_passwords(const char *const *args) { ARRAY_TYPE(const_string) new_args; -- 2.47.3