diff options
author | Stef Walter <stef@memberwebs.com> | 2004-04-29 03:55:57 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-04-29 03:55:57 +0000 |
commit | 2c1dec428c6e1d1bb6675847a5046a4fabdfe4c4 (patch) | |
tree | 84c3f1140691b33933c073c78ba52ca6d8eafcac /daemon/simple.c | |
parent | f9df80773a7a6a08e62d2073154edf0c76f1f209 (diff) |
- Added documentation
- Fixed bugs
- Added support for dns to sock_any
Diffstat (limited to 'daemon/simple.c')
-rw-r--r-- | daemon/simple.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/daemon/simple.c b/daemon/simple.c index 5b4eb60..d45668f 100644 --- a/daemon/simple.c +++ b/daemon/simple.c @@ -458,7 +458,6 @@ static int simple_digest_response(simple_context_t* ctx, const char* header, { if(dg.nonce && strcmp(dg.nonce, ctx->opts->digest_debugnonce) != 0) { - resp->code = HA_SERVER_BADREQ; ret = HA_FALSE; ha_messagex(LOG_WARNING, "simple: digest response contains invalid nonce"); goto finally; @@ -477,10 +476,7 @@ static int simple_digest_response(simple_context_t* ctx, const char* header, if(r != HA_OK) { if(r == HA_FALSE) - { - resp->code = HA_SERVER_BADREQ; ha_messagex(LOG_WARNING, "simple: digest response contains invalid nonce"); - } ret = r; goto finally; @@ -523,11 +519,13 @@ static int simple_digest_response(simple_context_t* ctx, const char* header, } } - /* Increment our nonce count */ - rec->nc++; + /* We had a record so ... */ + else + { + rec->nc++; + } - ret = digest_check(ctx->opts->realm, method, - ctx->opts->digest_ignoreuri ? NULL : uri, buf, &dg, rec); + ret = digest_check(&dg, rec, ctx->opts, buf, method, uri); if(ret == HA_BADREQ) { |