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:
Assar Westerlund
1996-10-20 17:47:14 +00:00
parent 941112cf37
commit 7335772620
12 changed files with 22 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ static Type *new_type (Typetype t);
void yyerror (char *);
char *strdup(char *);
static void append (Member *l, Member *r);
%}
%union {

View File

@@ -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

View File

@@ -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;

2
krb5.h
View File

@@ -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;

View File

@@ -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"

View File

@@ -14,6 +14,9 @@ static Type *new_type (Typetype t);
void yyerror (char *);
char *strdup(char *);
static void append (Member *l, Member *r);
%}
%union {

View File

@@ -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

View File

@@ -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;

View File

@@ -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;

View File

@@ -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"

View File

@@ -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;
}

View File

@@ -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;
}