From db7bd968daa6589bd32573a188e3fc73802c4199 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 27 Jun 2008 12:42:07 +0200 Subject: 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 (This used to be commit 2813882ef3cc3609a74ad83bcee6be0c2cd53494) --- source4/auth/ntlmssp/ntlmssp_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/auth/ntlmssp/ntlmssp_parse.c b/source4/auth/ntlmssp/ntlmssp_parse.c index 8e31d814d0..e1c1e7cbb3 100644 --- a/source4/auth/ntlmssp/ntlmssp_parse.c +++ b/source4/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; -- cgit