From: Ezra Peisach Date: Tue, 31 Jul 2001 08:52:03 +0000 (+0000) Subject: * get_in_tkt.c: Cast to unsigned krb5_error error value to X-Git-Tag: krb5-1.3-alpha1~1153 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10e656d4c851b14ddae6bdb588f9ab40c52c0802;p=krb5.git * 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 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4ca2bbe31..fbbd98f1e 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2001-07-31 Ezra Peisach + + * 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 * 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 49e478980..e32502364 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; }