*** empty log message ***

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1190 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-01-26 19:35:43 +00:00
parent 7a4e4936b1
commit 9633c2bf27
2 changed files with 5 additions and 2 deletions

View File

@@ -130,6 +130,6 @@ int suspicious_address (int sock, struct sockaddr_in addr);
#define KX_PORT 2111
#define KXVERSION "KXSERV.1"
#define KX_VERSION "KXSERV.1"
#define COOKIE_TYPE "MIT-MAGIC-COOKIE-1"

View File

@@ -113,6 +113,7 @@ static int
get_cred(char *princ, char *inst, char *krealm, CREDENTIALS *c, KTEXT_ST *tkt)
{
int k_errno = krb_get_cred(princ, inst, krealm, c);
if (k_errno != KSUCCESS)
{
k_errno = krb_mk_req(tkt, princ, inst, krealm, 0);
@@ -127,10 +128,12 @@ get_cred(char *princ, char *inst, char *krealm, CREDENTIALS *c, KTEXT_ST *tkt)
Return 0 on error
*/
static u_int32_t ip_aton(char *ip)
static u_int32_t
ip_aton(char *ip)
{
u_int32_t addr;
unsigned int a, b, c, d;
if(sscanf(ip, "%u.%u.%u.%u", &a, &b, &c, &d) != 4)
return 0;
if((a | b | c | d) > 255)