diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-07-30 13:22:16 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-07-30 14:25:09 +1000 |
commit | 0f21fe7666b1c265d8144ed975140b67e764835e (patch) | |
tree | ef47717e32e03b1d9c9f10d247c44bf860dee3ac /auth | |
parent | 2dfb2a4e4530690a27d271299aeb78f9ad636c43 (diff) | |
download | samba-0f21fe7666b1c265d8144ed975140b67e764835e.tar.gz |
auth/kerberos: Do not do pointer arithmatic on a void *
Found with -Werror=pointer-arith
Andrew Bartlett
Diffstat (limited to 'auth')
-rw-r--r-- | auth/kerberos/gssapi_pac.c | 2 |
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); |