summaryrefslogtreecommitdiff
path: root/auth/kerberos
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-30 13:22:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-30 14:25:09 +1000
commit0f21fe7666b1c265d8144ed975140b67e764835e (patch)
treeef47717e32e03b1d9c9f10d247c44bf860dee3ac /auth/kerberos
parent2dfb2a4e4530690a27d271299aeb78f9ad636c43 (diff)
downloadsamba-0f21fe7666b1c265d8144ed975140b67e764835e.tar.gz
samba-0f21fe7666b1c265d8144ed975140b67e764835e.tar.bz2
samba-0f21fe7666b1c265d8144ed975140b67e764835e.zip
auth/kerberos: Do not do pointer arithmatic on a void *
Found with -Werror=pointer-arith Andrew Bartlett
Diffstat (limited to 'auth/kerberos')
-rw-r--r--auth/kerberos/gssapi_pac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/kerberos/gssapi_pac.c b/auth/kerberos/gssapi_pac.c
index a17405211d..99181a1309 100644
--- a/auth/kerberos/gssapi_pac.c
+++ b/auth/kerberos/gssapi_pac.c
@@ -266,7 +266,7 @@ NTSTATUS gssapi_get_session_key(TALLOC_CTX *mem_ctx,
gss_maj = gss_release_buffer_set(&gss_min, &set);
return NT_STATUS_OK;
}
- p = set->elements[1].value + gse_sesskeytype_oid.length;
+ p = (uint8_t *)set->elements[1].value + gse_sesskeytype_oid.length;
diflen = set->elements[1].length - gse_sesskeytype_oid.length;
if (diflen <= 0) {
gss_maj = gss_release_buffer_set(&gss_min, &set);