From b5d0774905cb57593edc5ea28a016246517367a6 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 5 Dec 2001 12:07:41 +0000 Subject: [PATCH] * krb524d.c (cleanup_and_exit): Call krb5_klog_close() * encode.c (encode_bytes, decode_bytes): Make length field unsigned to clean up unsigned/signed warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14043 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/ChangeLog | 7 +++++++ src/krb524/encode.c | 8 ++++---- src/krb524/krb524d.c | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index a9e532d97..9240e002e 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,10 @@ +2001-12-05 Ezra Peisach + + * krb524d.c (cleanup_and_exit): Call krb5_klog_close(). + + * encode.c (encode_bytes, decode_bytes): Make length field + unsigned to clean up unsigned/signed warnings. + 2001-10-10 Ken Raeburn Danilo Almeida diff --git a/src/krb524/encode.c b/src/krb524/encode.c index 46fc84502..596c9a954 100644 --- a/src/krb524/encode.c +++ b/src/krb524/encode.c @@ -43,19 +43,19 @@ int encode_v4tkt (KTEXT_ST *, char *, unsigned int *), encode_ktext (char **, int *, KTEXT_ST *), - encode_bytes (char **, int *, char *, int), + encode_bytes (char **, int *, char *, unsigned int), encode_int32 (char **, int *, krb5_int32 *); int decode_v4tkt (KTEXT_ST *, char *, unsigned int *), decode_ktext (char **, int *, KTEXT_ST *), - decode_bytes (char **, int *, char *, int), + decode_bytes (char **, int *, char *, unsigned int), decode_int32 (char **, int *, krb5_int32 *); int encode_bytes(out, outlen, in, len) char **out; int *outlen; char *in; - int len; + unsigned int len; { if (len > *outlen) return KRB524_ENCFULL; @@ -102,7 +102,7 @@ int decode_bytes(out, outlen, in, len) char **out; int *outlen; char *in; - int len; + unsigned int len; { if (len > *outlen) return KRB524_DECEMPTY; diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 022cde859..d856e122f 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -229,6 +229,7 @@ void cleanup_and_exit(ret, context) (void) kadm5_destroy(handle); } if (use_keytab && kt) krb5_kt_close(context, kt); + krb5_klog_close(context); krb5_free_context(context); exit(ret); } -- 2.26.2