diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-12-03 14:20:40 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-12-03 14:20:40 +0000 |
commit | 62a343e2402e8a8050c69dbc7d37d7e23c401adb (patch) | |
tree | d1fb263a88ef44af02fe6891b3a7e6d55170c77e /src | |
parent | 3d2c00d05fa47df33c505a070d54a001827147c0 (diff) | |
download | anubis-62a343e2402e8a8050c69dbc7d37d7e23c401adb.tar.gz anubis-62a343e2402e8a8050c69dbc7d37d7e23c401adb.tar.bz2 |
(anubis_auth_gsasl): A bit of sugar for broken printfs: print NULLs explicitely.
Diffstat (limited to 'src')
-rw-r--r-- | src/gsasl_srv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gsasl_srv.c b/src/gsasl_srv.c index 5a8dad7..010d7f7 100644 --- a/src/gsasl_srv.c +++ b/src/gsasl_srv.c @@ -122,6 +122,8 @@ auth_gsasl_capa_init () /* GSASL Authentication */ +#define SP(x) ((x)?(x):"NULL") + int anubis_auth_gsasl (char *auth_type, char *arg, ANUBIS_USER * usr, NET_STREAM * stream) @@ -133,7 +135,7 @@ anubis_auth_gsasl (char *auth_type, char *arg, ANUBIS_USER * usr, Gsasl_session_ctx *sess_ctx = NULL; if (options.termlevel == DEBUG) - fprintf (stderr, "SASL mech=%s, inp=%s\n", auth_type, arg); + fprintf (stderr, "SASL mech=%s, inp=%s\n", SP(auth_type), SP(arg)); memset (usr, 0, sizeof (*usr)); rc = gsasl_server_start (ctx, auth_type, &sess_ctx); |