aboutsummaryrefslogtreecommitdiff
path: root/lib/http_ntlm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http_ntlm.c')
-rw-r--r--lib/http_ntlm.c16
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;