* ser_sctx.c (kg_oid_internalize): Do away with local variable
authorEzra Peisach <epeisach@mit.edu>
Thu, 7 Jun 2001 17:48:07 +0000 (17:48 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 7 Jun 2001 17:48:07 +0000 (17:48 +0000)
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
src/lib/gssapi/krb5/ser_sctx.c

index dae9eb155c2299270f9f9351aaa0bde03b373363..98e13a187bffe03b2380205cfbbefcf706f0df95 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-07  Ezra Peisach  <epeisach@mit.edu>
+
+       * ser_sctx.c (kg_oid_internalize): Do away with local variable
+       that was set but never used.
+
 2001-06-04  Ezra Peisach  <epeisach@mit.edu>
 
        * accept_sec_context.c (krb5_gss_accept_sec_context): Cleanup
index 781e8ee148e37b6706f497b29a7487e90dde4bae..e18d0e58dee9a3b3f190cfa4e31eb4e2882148f5 100644 (file)
@@ -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)