From 84b4164c818156b43b578044b8f4b5403291eb55 Mon Sep 17 00:00:00 2001 From: fredrik Date: Wed, 11 Apr 2007 11:02:06 +0000 Subject: [PATCH] Handle NULL dchostname. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@888 959494ce-11ee-0310-bf91-de5d638817bd --- lib/uimisc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/uimisc.c b/lib/uimisc.c index e1ece1c..9cef69f 100644 --- a/lib/uimisc.c +++ b/lib/uimisc.c @@ -321,6 +321,11 @@ static int init_krb5(struct logindata *data) krb5_data cksum; krb5_creds creds; + if(dc_gethostname() == NULL) + { + message("cannot use krb5 without a host name"); + return(1); + } krb = smalloc(sizeof(*krb)); memset(krb, 0, sizeof(*krb)); krb->fwd = 1; -- 2.11.0