Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/heimdal/lib/krb5 Return failure if there is no K...
details: https://anonhg.NetBSD.org/src/rev/4024652f7067
branches: trunk
changeset: 494875:4024652f7067
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Jul 16 18:27:53 2000 +0000
description:
Return failure if there is no Kerberos 5 configuration file.
diffstat:
crypto/dist/heimdal/lib/krb5/context.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 2192039b8159 -r 4024652f7067 crypto/dist/heimdal/lib/krb5/context.c
--- a/crypto/dist/heimdal/lib/krb5/context.c Sun Jul 16 14:07:39 2000 +0000
+++ b/crypto/dist/heimdal/lib/krb5/context.c Sun Jul 16 18:27:53 2000 +0000
@@ -33,7 +33,7 @@
#include "krb5_locl.h"
-RCSID("$Id: context.c,v 1.1.1.1 2000/06/16 18:32:56 thorpej Exp $");
+RCSID("$Id: context.c,v 1.2 2000/07/16 18:27:53 thorpej Exp $");
#define INIT_FIELD(C, T, E, D, F) \
(C)->E = krb5_config_get_ ## T ## _default ((C), NULL, (D), \
@@ -179,11 +179,14 @@
if (ret == 0)
p->cf = tmp_cf;
+ else {
#if 0
- else
krb5_warnx (p, "Unable to parse config file %s. Ignoring.",
config_file); /* XXX */
#endif
+ free(p);
+ return ENXIO; /* XXX close enough for "not configured"? */
+ }
ret = init_context_from_config_file(p);
if(ret)
Home |
Main Index |
Thread Index |
Old Index