From 0f21fe7666b1c265d8144ed975140b67e764835e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 30 Jul 2012 13:22:16 +1000 Subject: auth/kerberos: Do not do pointer arithmatic on a void * Found with -Werror=pointer-arith Andrew Bartlett --- auth/kerberos/gssapi_pac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth') 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); -- cgit