ocserv/ocserv-0.10.6-json.patch

30 lines
1.1 KiB
Diff
Raw Normal View History

2015-07-09 10:13:38 +00:00
diff --git a/src/occtl-print.c b/src/occtl-print.c
index 1441cd6..8ff297e 100644
--- a/src/occtl-print.c
+++ b/src/occtl-print.c
@@ -47,9 +47,9 @@ int print_list_entries(FILE* out, cmd_params_st *params, const char* name, char
tmp = val[i];
if (tmp != NULL) {
if (i==0)
- fprintf(out, "%s", tmp);
+ fprintf(out, "\"%s\"", tmp);
else
- fprintf(out, ", %s", tmp);
+ fprintf(out, ", \"%s\"", tmp);
}
}
fprintf(out, "]%s\n", have_more?",":"");
diff --git a/src/occtl-unix.c b/src/occtl-unix.c
index 6df5a1e..d6b28f3 100644
--- a/src/occtl-unix.c
+++ b/src/occtl-unix.c
@@ -254,7 +254,7 @@ int handle_status_cmd(struct unix_ctx *ctx, const char *arg, cmd_params_st *para
print_single_value_int(stdout, params, "TLS DB entries", rep->stored_tls_sessions, 1);
print_separator(stdout, params);
print_single_value_int(stdout, params, "Server PID", rep->pid, 1);
- print_single_value_int(stdout, params, "Sec-mod PID", rep->sec_mod_pid, 1);
+ print_single_value_int(stdout, params, "Sec-mod PID", rep->sec_mod_pid, 0);
print_end_block(stdout, params, 0);
status_rep__free_unpacked(rep, &pa);