From f6cfae7decfabebd695e8cae745256b7daba3f94 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 7 Jun 2001 17:48:07 +0000 Subject: [PATCH] * ser_sctx.c (kg_oid_internalize): Do away with local variable that was set but never used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13288 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 5 +++++ src/lib/gssapi/krb5/ser_sctx.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index dae9eb155..98e13a187 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +2001-06-07 Ezra Peisach + + * ser_sctx.c (kg_oid_internalize): Do away with local variable + that was set but never used. + 2001-06-04 Ezra Peisach * accept_sec_context.c (krb5_gss_accept_sec_context): Cleanup diff --git a/src/lib/gssapi/krb5/ser_sctx.c b/src/lib/gssapi/krb5/ser_sctx.c index 781e8ee14..e18d0e58d 100644 --- a/src/lib/gssapi/krb5/ser_sctx.c +++ b/src/lib/gssapi/krb5/ser_sctx.c @@ -68,7 +68,6 @@ kg_oid_internalize(kcontext, argp, buffer, lenremain) krb5_octet **buffer; size_t *lenremain; { - krb5_error_code kret; gss_OID oid; krb5_int32 ibuf; krb5_octet *bp; @@ -78,7 +77,7 @@ kg_oid_internalize(kcontext, argp, buffer, lenremain) remain = *lenremain; /* Read in and check our magic number */ - if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) + if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) return (EINVAL); if (ibuf != KV5M_GSS_OID) @@ -98,7 +97,7 @@ kg_oid_internalize(kcontext, argp, buffer, lenremain) oid->length, &bp, &remain); /* Read in and check our trailing magic number */ - if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) + if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) return (EINVAL); if (ibuf != KV5M_GSS_OID) -- 2.26.2