(cap_code should been a krb5_error_code, not an int!)
mk_cred.c (krb5_mk_ncred_basic): Fix windows lint flame.
get_in_tkt.c (krb5_get_in_tkt): Fix 16bit vs. 32bit error. (do_more
should not have been an int!)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7693
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Mar 20 23:00:59 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * walk_rtree.c (krb5_walk_realm_tree): Fix 16bit vs. 32bit error.
+ (cap_code should been a krb5_error_code, not an int!)
+
+ * mk_cred.c (krb5_mk_ncred_basic): Fix windows lint flame.
+
+ * get_in_tkt.c (krb5_get_in_tkt): Fix 16bit vs. 32bit error.
+ (do_more should not have been an int!)
+
Mon Mar 18 21:49:39 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* configure.in: Add KRB5_RUN_FLAGS
krb5_kdc_rep * as_reply;
krb5_pa_data ** preauth_to_use = 0;
int loopcount = 0;
- int do_more = 0;
+ krb5_int32 do_more = 0;
if (! krb5_realm_compare(context, creds->client, creds->server))
return KRB5_IN_TKT_REALM_MISMATCH;
{
krb5_cred_enc_part credenc;
krb5_error_code retval;
+ size_t size;
int i;
credenc.magic = KV5M_CRED_ENC_PART;
credenc.timestamp = replaydata->timestamp;
/* Get memory for creds and initialize it */
- if ((credenc.ticket_info = (krb5_cred_info **)
- malloc((size_t) (sizeof(krb5_cred_info *) * (nppcreds + 1)))) == NULL) {
- return ENOMEM;
- }
- memset(credenc.ticket_info, 0, sizeof(krb5_cred_info *) * (nppcreds + 1));
+ size = sizeof(krb5_cred_info *) * (nppcreds + 1);
+ credenc.ticket_info = (krb5_cred_info **) malloc(size);
+ if (credenc.ticket_info == NULL)
+ return ENOMEM;
+ memset(credenc.ticket_info, 0, size);
/*
* For each credential in the list, initialize a cred info
const char *cap_names[4];
char *cap_client, *cap_server;
char **cap_nodes;
- int cap_code;
+ krb5_error_code cap_code;
if ((cap_client = (char *)malloc(client->length + 1)) == NULL)
return ENOMEM;
strncpy(cap_client, client->data, client->length);