Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 12/19/2000 23:31:12
Module Name: basesrc
Committed By: nathanw
Date: Tue Dec 19 21:31:12 UTC 2000
Modified Files:
basesrc/crypto/dist/heimdal/admin: ktutil.c
basesrc/crypto/dist/heimdal/kadmin: kadmin.c kadmind.c
basesrc/crypto/dist/heimdal/kdc: main.c
basesrc/crypto/dist/heimdal/kpasswd: kpasswd.c
basesrc/crypto/dist/heimdal/kuser: kdestroy.c klist.c
Log Message:
Check the return value of krb5_init_context(), and bail out if it failed.
Also, when failing, don't try to use the non-initialized context value
to determine the error text.
This avoids dumping core in the following programs when /etc/krb5.conf is
missing or broken: klist, kdestroy, kpasswd, kadmin, kadmind, ktutil, kdc.
XXX Better error reporting in this failure case would be nice.
To generate a diff of this commit:
cvs rdiff -r1.1.1.2 -r1.2 basesrc/crypto/dist/heimdal/admin/ktutil.c
cvs rdiff -r1.1.1.2 -r1.2 basesrc/crypto/dist/heimdal/kadmin/kadmin.c
cvs rdiff -r1.2 -r1.3 basesrc/crypto/dist/heimdal/kadmin/kadmind.c
cvs rdiff -r1.2 -r1.3 basesrc/crypto/dist/heimdal/kdc/main.c
cvs rdiff -r1.1.1.2 -r1.2 basesrc/crypto/dist/heimdal/kpasswd/kpasswd.c
cvs rdiff -r1.1.1.2 -r1.2 basesrc/crypto/dist/heimdal/kuser/kdestroy.c \
basesrc/crypto/dist/heimdal/kuser/klist.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.