}
}
-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)
{
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;