summaryrefslogtreecommitdiffstats
path: root/source/libsmb/ntlmssp_parse.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-09-30 17:13:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:04:48 -0500
commit939c3cb5d78e3a2236209b296aa8aba8bdce32d3 (patch)
tree5f3a22ba40783ce548328a44b9262a451f33ad27 /source/libsmb/ntlmssp_parse.c
parentf049fd463b087ccf4873b03675cca5eb8576af2e (diff)
downloadsamba-939c3cb5d78e3a2236209b296aa8aba8bdce32d3.tar.gz
samba-939c3cb5d78e3a2236209b296aa8aba8bdce32d3.tar.xz
samba-939c3cb5d78e3a2236209b296aa8aba8bdce32d3.zip
r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
Diffstat (limited to 'source/libsmb/ntlmssp_parse.c')
-rw-r--r--source/libsmb/ntlmssp_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libsmb/ntlmssp_parse.c b/source/libsmb/ntlmssp_parse.c
index 4b3043aec80..e71504867e9 100644
--- a/source/libsmb/ntlmssp_parse.c
+++ b/source/libsmb/ntlmssp_parse.c
@@ -216,7 +216,7 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
/* if odd length and unicode */
return False;
}
- if (blob->data + ptr < (uint8 *)ptr || blob->data + ptr < blob->data)
+ if (blob->data + ptr < (uint8 *)(unsigned long)ptr || blob->data + ptr < blob->data)
return False;
if (0 < len1) {
@@ -244,7 +244,7 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
return False;
}
- if (blob->data + ptr < (uint8 *)ptr || blob->data + ptr < blob->data)
+ if (blob->data + ptr < (uint8 *)(unsigned long)ptr || blob->data + ptr < blob->data)
return False;
if (0 < len1) {
@@ -272,7 +272,7 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
return False;
}
- if (blob->data + ptr < (uint8 *)ptr || blob->data + ptr < blob->data)
+ if (blob->data + ptr < (uint8 *)(unsigned long)ptr || blob->data + ptr < blob->data)
return False;
*b = data_blob(blob->data + ptr, len1);