X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fuimisc.c;h=9cef69f2adf16139a0c16cc0b8f6ed53e6a6fb56;hb=9e5f2b29cf819c9f79113bf3ae7edcb484d8ee14;hp=e1ece1c3ae5178c482d2216849089c92a9067292;hpb=c0d36fc531b148cfc8ceacc25e5e27d78cdd1906;p=doldaconnect.git 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;