stupid and quick fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@867 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -433,6 +433,7 @@ krb5_cc_store_cred(krb5_context context,
|
||||
store_ticket(fd, creds->ticket);
|
||||
store_ticket(fd, creds->second_ticket);
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static krb5_error_code
|
||||
|
@@ -26,6 +26,8 @@ krb5_get_all_client_addrs (krb5_addresses *res)
|
||||
res->number = 1;
|
||||
res->addrs = malloc (sizeof(*res->addrs));
|
||||
res->addrs[0].type = hostent->h_addrtype;
|
||||
res->addrs[0].address.data = NULL;
|
||||
res->addrs[0].address.length = 0;
|
||||
err = krb5_data_alloc (&res->addrs[0].address, hostent->h_length);
|
||||
if (err)
|
||||
return err;
|
||||
|
@@ -21,6 +21,7 @@
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
/* types */
|
||||
typedef int int32_t;
|
||||
typedef short int16_t;
|
||||
@@ -29,6 +30,7 @@ typedef char int8_t;
|
||||
typedef unsigned int u_int32_t;
|
||||
typedef unsigned short u_int16_t;
|
||||
typedef unsigned char u_int8_t;
|
||||
#endif
|
||||
|
||||
typedef int krb5_boolean;
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
|
||||
#include <sys/filio.h>
|
||||
#include <des.h>
|
||||
|
||||
#include "krb5.h"
|
||||
|
@@ -221,6 +221,8 @@ krb5_principal_set_component(krb5_principal p, int n, void *data, size_t len)
|
||||
p->comp = tmp;
|
||||
p->ncomp = s;
|
||||
}
|
||||
p->comp[n].length = 0;
|
||||
p->comp[n].data = NULL;
|
||||
krb5_data_copy(&p->comp[n], data, len);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user