aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/ccache/ser_cc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/ccache/ser_cc.c')
-rw-r--r--src/lib/krb5/ccache/ser_cc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/ser_cc.c b/src/lib/krb5/ccache/ser_cc.c
index dfe5e60..2438dd6 100644
--- a/src/lib/krb5/ccache/ser_cc.c
+++ b/src/lib/krb5/ccache/ser_cc.c
@@ -173,7 +173,7 @@ krb5_ccache_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **
kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
if (kret)
return kret;
- if (ibuf < 0 || ibuf > remain)
+ if (ibuf < 0 || (krb5_ui_4) ibuf > remain)
return EINVAL;
/* Allocate and unpack the name. */