* get_in_tkt.c: Cast to unsigned krb5_error error value to
authorEzra Peisach <epeisach@mit.edu>
Tue, 31 Jul 2001 08:52:03 +0000 (08:52 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 31 Jul 2001 08:52:03 +0000 (08:52 +0000)
        krb5_error_code before trying to add to ERROR_TABLE_BASE_krb5.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13658 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/get_in_tkt.c

index 4ca2bbe318de1c91b48c68fff4e79789895963ca..fbbd98f1ef6bceed8931a95639a47e76445172a4 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-31  Ezra Peisach  <epeisach@mit.edu>
+
+       * get_in_tkt.c: Cast to unsigned krb5_error error value to 
+       krb5_error_code before trying to add to ERROR_TABLE_BASE_krb5. 
+
 2001-07-30  Ezra Peisach  <epeisach@mit.edu>
 
        * sendauth.c (krb5_sendauth): Instead of casting second argument
index 49e4789803e485c228064b6f658cac83548635b6..e325023647db5c0e93d9f71302286b90809ef176 100644 (file)
@@ -531,7 +531,8 @@ krb5_get_in_tkt(context, options, addrs, ktypes, ptypes, key_proc, keyseed,
                    goto cleanup;
                continue;
            } else {
-               retval = err_reply->error + ERROR_TABLE_BASE_krb5;
+               retval = (krb5_error_code) err_reply->error 
+                   + ERROR_TABLE_BASE_krb5;
                krb5_free_error(context, err_reply);
                goto cleanup;
            }
@@ -958,7 +959,8 @@ krb5_get_init_creds(context, creds, client, prompter, prompter_data,
                if (ret)
                    goto cleanup;
            } else {
-               ret = err_reply->error + ERROR_TABLE_BASE_krb5;
+               ret = (krb5_error_code) err_reply->error 
+                   + ERROR_TABLE_BASE_krb5;
                krb5_free_error(context, err_reply);
                goto cleanup;
            }