summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2005-06-21 10:31:29 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2005-06-21 10:31:29 +0000
commitb8516922166465fd1d27bda72fcbe64c154a8993 (patch)
tree2ebf6499da866e7f8d01096f4be4d5325c90f9db
parent9448aa3579d5c137a87f4a9183f1356d45dab5c9 (diff)
downloadneon-b8516922166465fd1d27bda72fcbe64c154a8993.tar.gz
* src/ne_auth.c (ah_post_send): Print auth_hdr safely.
Remove unused SAFELY macro. git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.25.x@631 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-rw-r--r--src/ne_auth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ne_auth.c b/src/ne_auth.c
index ff2e280..480968c 100644
--- a/src/ne_auth.c
+++ b/src/ne_auth.c
@@ -1210,8 +1210,6 @@ static void ah_pre_send(ne_request *r, void *cookie, ne_buffer *request)
}
-#define SAFELY(x) ((x) != NULL?(x):"null")
-
static int ah_post_send(ne_request *req, void *cookie, const ne_status *status)
{
auth_session *sess = cookie;
@@ -1242,7 +1240,7 @@ static int ah_post_send(ne_request *req, void *cookie, const ne_status *status)
NE_DEBUG(NE_DBG_HTTPAUTH,
"ah_post_send (#%d), code is %d (want %d), %s is %s\n",
sess->attempt, status->code, sess->spec->status_code,
- sess->spec->resp_hdr, auth_hdr);
+ sess->spec->resp_hdr, auth_hdr ? auth_hdr : "(none)");
if (auth_info_hdr && sess->scheme == auth_scheme_digest) {
if (verify_digest_response(areq, sess, auth_info_hdr)) {
NE_DEBUG(NE_DBG_HTTPAUTH, "Response authentication invalid.\n");