summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-12-12 10:10:08 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-12-19 12:40:40 +0100
commitb1ad5a880fd571c970a0fff33e20f4ea0c469f4c (patch)
tree8514012647c1d4bf2e64fbe1762c0c6a5bdd3c77 /lib/krb5_wrap
parent5118985841aa0363147d552f243ab5a7d90dbdaf (diff)
downloadsamba-b1ad5a880fd571c970a0fff33e20f4ea0c469f4c.tar.gz
krb5_wrap: Fix bit shifting
lib/krb5_wrap/enctype_convert.c:93:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Dec 19 12:40:40 CET 2018 on sn-devel-144
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r--lib/krb5_wrap/enctype_convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krb5_wrap/enctype_convert.c b/lib/krb5_wrap/enctype_convert.c
index b78304f6bf0..a658911190a 100644
--- a/lib/krb5_wrap/enctype_convert.c
+++ b/lib/krb5_wrap/enctype_convert.c
@@ -90,7 +90,7 @@ krb5_error_code ms_suptypes_to_ietf_enctypes(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
for (i = 0; i < (8 * sizeof(enctype_bitmap)); i++) {
- uint32_t bit_value = (1 << i) & enctype_bitmap;
+ uint32_t bit_value = (1U << i) & enctype_bitmap;
if (bit_value & enctype_bitmap) {
(*enctypes)[j] = ms_suptype_to_ietf_enctype(bit_value);
if (!(*enctypes)[j]) {