diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-21 19:03:20 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-21 19:03:20 +0000 |
commit | 3a634a273a7bff3d219883f572db786e2c1004b1 (patch) | |
tree | a0f1f70c6de10f38c29e3f5f468bed50db759ec1 /lib/http_ntlm.c | |
parent | 06d1b029f63b9b03dfa3b9bfe34ba1baeb67df29 (diff) | |
download | curl-3a634a273a7bff3d219883f572db786e2c1004b1.tar.gz |
curlassert macro replaced with DEBUGASSERT macro defined in setup_once.h
Diffstat (limited to 'lib/http_ntlm.c')
-rw-r--r-- | lib/http_ntlm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index aff1bb1b6..8e910a290 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -511,8 +511,8 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, struct ntlmdata *ntlm; struct auth *authp; - curlassert(conn); - curlassert(conn->data); + DEBUGASSERT(conn); + DEBUGASSERT(conn->data); if(proxy) { allocuserpwd = &conn->allocptr.proxyuserpwd; @@ -991,9 +991,9 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, 0x0, 0x0, LONGQUARTET(ntlm->flags)); - DEBUG_OUT(assert(size==64)); + DEBUGASSERT(size==64); - DEBUG_OUT(assert(size == lmrespoff)); + DEBUGASSERT(size == lmrespoff); /* We append the binary hashes */ if(size < (sizeof(ntlmbuf) - 0x18)) { memcpy(&ntlmbuf[size], lmresp, 0x18); @@ -1007,7 +1007,7 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, #if USE_NTRESPONSES if(size < (sizeof(ntlmbuf) - 0x18)) { - DEBUG_OUT(assert(size == ntrespoff)); + DEBUGASSERT(size == ntrespoff); memcpy(&ntlmbuf[size], ntresp, 0x18); size += 0x18; } @@ -1034,15 +1034,15 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, return CURLE_OUT_OF_MEMORY; } - curlassert(size == domoff); + DEBUGASSERT(size == domoff); memcpy(&ntlmbuf[size], domain, domlen); size += domlen; - curlassert(size == useroff); + DEBUGASSERT(size == useroff); memcpy(&ntlmbuf[size], user, userlen); size += userlen; - curlassert(size == hostoff); + DEBUGASSERT(size == hostoff); memcpy(&ntlmbuf[size], host, hostlen); size += hostlen; |