(do_afslog): is cell is unset, set it "<default cell>" for error printing

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12436 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-07-15 12:56:00 +00:00
parent b48c005971
commit 801e3f9334

View File

@@ -246,6 +246,8 @@ do_afslog(const char *cell)
return 0;
}
#endif
if (cell == NULL)
cell = "<default cell>";
#ifdef KRB5
if (k5ret)
warnx("krb5_afslog(%s): %s", cell, krb5_get_err_text(context, k5ret));