diff options
Diffstat (limited to 'source3/utils/net_rpc_audit.c')
-rw-r--r-- | source3/utils/net_rpc_audit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_audit.c b/source3/utils/net_rpc_audit.c index 5c81fe24d0..981dc93fdd 100644 --- a/source3/utils/net_rpc_audit.c +++ b/source3/utils/net_rpc_audit.c @@ -44,6 +44,13 @@ static void print_auditing_category(const char *policy, const char *value) fstring padding; int pad_len, col_len = 30; + if (policy == NULL) { + policy = "Unknown"; + } + if (value == NULL) { + value = "Invalid"; + } + /* calculate padding space for d_printf to look nicer */ pad_len = col_len - strlen(policy); padding[pad_len] = 0; |