diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-07-31 08:52:03 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-07-31 08:52:03 +0000 |
commit | 10e656d4c851b14ddae6bdb588f9ab40c52c0802 (patch) | |
tree | a8860035473521c42f23eae7063f4c68c97d57c5 /src | |
parent | 473474c212f5c9ffa20d1c545bbb526404c8a0d3 (diff) | |
download | krb5-10e656d4c851b14ddae6bdb588f9ab40c52c0802.tar.gz krb5-10e656d4c851b14ddae6bdb588f9ab40c52c0802.tar.xz krb5-10e656d4c851b14ddae6bdb588f9ab40c52c0802.zip |
* get_in_tkt.c: Cast to unsigned krb5_error error value to
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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb5/krb/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/krb5/krb/get_in_tkt.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4ca2bbe318..fbbd98f1ef 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -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 diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 49e4789803..e325023647 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -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; } |