[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: heimdal 0.5.2 and v4 cross-realm
Except that this looks much better. Sorry for the noise.
/Johan
--- 524.c 2003/03/17 06:46:44 1.25.4.1
+++ 524.c 2003/03/18 15:05:27 1.25.4.3
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-2002 Kungliga Tekniska Högskolan
+ * Copyright (c) 1997-2003 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -33,7 +33,7 @@
#include "kdc_locl.h"
-RCSID("$Id: 524.c,v 1.25.4.1 2003/03/17 06:46:44 assar Exp $");
+RCSID("$Id: 524.c,v 1.25.4.3 2003/03/18 15:05:27 joda Exp $");
#ifdef KRB4
@@ -254,7 +254,9 @@
if (!enable_v4_cross_realm && strcmp (et.crealm, t->realm) != 0) {
kdc_log(0, "524 cross-realm %s -> %s disabled", et.crealm,
t->realm);
- return KRB5KDC_ERR_POLICY;
+ free_EncTicketPart(&et);
+ ret = KRB5KDC_ERR_POLICY;
+ goto out;
}
ret = encode_v4_ticket(buf + sizeof(buf) - 1, sizeof(buf),