mirror of
https://github.com/kakwa/uts-server
synced 2025-07-03 12:07:02 +02:00
add handling of NULL strings in logs
replace NULL char * by const char * "<undef>" in log messages as printf("%s", NULL) behavior is not formalized.
This commit is contained in:
parent
d3b0a2a99c
commit
84e015ec26
3 changed files with 21 additions and 13 deletions
|
@ -16,6 +16,7 @@ void log_hex(rfc3161_context *ct, int priority, char *id,
|
|||
int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd);
|
||||
static char *rand_string(char *str, size_t size);
|
||||
void free_uts_context(rfc3161_context *ct);
|
||||
const char *null_undef(const char * in);
|
||||
|
||||
// some global variable to handle signals
|
||||
int g_uts_sig_up;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue