From 29ccb4f61f533c160e68eb6d0e38e0fba0e8ab5c Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 9 Sep 1988 10:08:54 +0000 Subject: fix order of setting auth flags [jtkohl] --- lib/ZMkAuth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ZMkAuth.c') diff --git a/lib/ZMkAuth.c b/lib/ZMkAuth.c index d2027c0..763713a 100644 --- a/lib/ZMkAuth.c +++ b/lib/ZMkAuth.c @@ -30,11 +30,11 @@ Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) int retval, result; KTEXT_ST authent; - notice->z_auth = 1; if ((result = krb_mk_req(&authent, SERVER_SERVICE, SERVER_INSTANCE, __Zephyr_realm, 0)) != MK_AP_OK) return (result+krb_err_base); + notice->z_auth = 1; notice->z_authent_len = authent.length; notice->z_ascii_authent = (char *)malloc((unsigned)authent.length*3); if (!notice->z_ascii_authent) @@ -52,6 +52,7 @@ Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) return (retval); #else + notice->z_auth = 1; notice->z_authent_len = 0; return (Z_FormatRawHeader(notice, buffer, buffer_len, len, (char **) 0)); #endif -- cgit v1.2.3