summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-06-27 12:42:07 +0200
committerMichael Adam <obnox@samba.org>2008-06-27 14:27:30 +0200
commit2813882ef3cc3609a74ad83bcee6be0c2cd53494 (patch)
tree138725a10a61a5554262e8a878b841e9f73f6db9
parenta516bc9a2d4ce86244d0e2fbfacf6fda5e12e987 (diff)
downloadsamba-2813882ef3cc3609a74ad83bcee6be0c2cd53494.tar.gz
ntlmssp: get rid of "cast to pointer from integer of different size" warning on 64 bit
Not sure if this check is actually necessary, though: the second should be sufficient. Michael
-rw-r--r--source/auth/ntlmssp/ntlmssp_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/auth/ntlmssp/ntlmssp_parse.c b/source/auth/ntlmssp/ntlmssp_parse.c
index 8e31d814d03..e1c1e7cbb32 100644
--- a/source/auth/ntlmssp/ntlmssp_parse.c
+++ b/source/auth/ntlmssp/ntlmssp_parse.c
@@ -241,7 +241,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
ret = false;
goto cleanup;
}
- if (blob->data + ptr < (uint8_t *)ptr ||
+ if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr ||
blob->data + ptr < blob->data) {
ret = false;
goto cleanup;
@@ -276,7 +276,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
goto cleanup;
}
- if (blob->data + ptr < (uint8_t *)ptr ||
+ if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr ||
blob->data + ptr < blob->data) {
ret = false;
goto cleanup;
@@ -311,7 +311,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
goto cleanup;
}
- if (blob->data + ptr < (uint8_t *)ptr ||
+ if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr ||
blob->data + ptr < blob->data) {
ret = false;
goto cleanup;